[wp-trac] [WordPress Trac] #29714: user_can_access_admin_page() returning false for edit.php?post_type=CPT

WordPress Trac noreply at wordpress.org
Sat Oct 11 16:39:37 UTC 2014


#29714: user_can_access_admin_page() returning false for edit.php?post_type=CPT
----------------------------------------+------------------------------
 Reporter:  bobbingwide                 |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Role/Capability             |     Version:  4.0
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------
Changes (by bobbingwide):

 * keywords:  has-patch reporter-feedback => has-patch needs-unit-tests


Comment:

 The new patch (29714-2.diff) does not change $pagenow. It copies the value
 to $pagetest before modifying it. This won't create the side effects. The
 rest of the function uses $pagetest instead of $pagenow.

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


More information about the wp-trac mailing list