[wp-trac] [WordPress Trac] #17528: Comments menu has sub-menu despite only having one item

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 23 17:42:56 UTC 2011


#17528: Comments menu has sub-menu despite only having one item
-------------------------------+-----------------------
 Reporter:  kawauso            |       Owner:  ryan
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:  3.2
Component:  Administration     |     Version:  3.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+-----------------------

Comment (by kevinB):

 Note the correction to my code comments.  The permission failure I
 described occurred when I removed "Add New" submenu items on the
 'admin_menu' action.  My current workaround is to instead remove them on
 the 'admin_init' action... which prevents the removal of "All Pages" and
 the subsequent user_can_access_admin_page() failure.

 So you could call this resolved. Still, supporting this dependance between
 menu UI and permissions does not feel right.  If this ticket was motivated
 by a cosmetic concern, why are we talking about permissions at all?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17528#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list