[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:50:48 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):
Replying to [comment:13 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.
>
Not exactly. The typical use case is editing access to some subset of
posts, without the ability to create new posts. And yes, those users
would not normally be allowed to edit terms either.
The use case is certainly not WP core but not '''that''' bizarre. Based on
WP and plugin usage I would say 1/1000 is a fairer characterization. And
there's been some talk of a separate create_posts capability in WP core.
> 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.
Agreed. Given that remove_submenu_page() is supported API, you should be
able to remove one submenu without breaking access to another.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17528#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list