[wp-trac] [WordPress Trac] #22895: user_can_admin_menu() is Type-Insensitive for Users who Can't Create Pages

WordPress Trac noreply at wordpress.org
Sat Nov 22 15:40:14 UTC 2014


#22895: user_can_admin_menu() is Type-Insensitive for Users who Can't Create Pages
-----------------------------------------------+---------------------------
 Reporter:  kevinB                             |       Owner:
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  Future
Component:  Role/Capability                    |  Release
 Severity:  normal                             |     Version:  3.5
 Keywords:  has-patch needs-testing 3.7-early  |  Resolution:
                                               |     Focuses:
-----------------------------------------------+---------------------------

Comment (by bobbingwide):

 Just been talking to johnbillion at #wpldn contributor day.
 Apparently #29714 is a duplicate of this defect.
 Interestingly the workaround that I documented doesn't work
 but I have applied my patch to 4.1-beta2 and it works for me.

 He also suggested that I should point out that Nacin's patch would lead to
 the same side effects that I was getting with the first version of the
 workaround. Rather than change $pagenow it should be copied to another
 variable and then the tests be performed using the copy.

 So, the challenge that now remains is to create some form of unit test
 from my source code.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22895#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list