[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
Sun Sep 29 04:06:43 UTC 2013
#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: 3.7
Component: Role/Capability | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch needs-testing 3.7-early |
-----------------------------------------------+------------------
Comment (by nacin):
Replying to [comment:12 johnbillion]:
> I've just run into this problem. A user who doesn't have the
`create_posts` capability for a custom post type can't see the edit menu
for that post type unless they also have the general `edit_posts`
capability. This is caused by `$parent` in `user_can_access_admin_page()`
being empty when it shouldn't.
So [attachment:22895.diff] would be the wrong fix? Patch welcome for sure.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22895#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list