[wp-trac] [WordPress Trac] #20745: Hard-code less capability types
WordPress Trac
wp-trac at lists.automattic.com
Fri May 25 08:48:41 UTC 2012
#20745: Hard-code less capability types
-----------------------------+-----------------------------
Reporter: Viper007Bond | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: 3.4
Severity: normal | Keywords: has-patch
-----------------------------+-----------------------------
We still hard-code some capability types thoughout the admin area.
For example `edit_post` is hard-coded as the edit attachment capability in
the edit attachment pages. It should be pulled from the post type object
instead so that it can be modified.
I've patched the ones I found.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20745>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list