[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:35:30 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 azaozz):

 This seems like a 1 / 1,000,000,000 case. If I understand it correctly
 you're setting a user with a permission to edit all posts (Editor) but
 removing permission to edit tags, cats, or publish new posts. And your
 problem is how to hide the Add New (post) submenu.

 If user_can_access_admin_page() breaks with these "unusual" permissions,
 perhaps we should be looking to fix this function instead of tweaking the
 menus.

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


More information about the wp-trac mailing list