[wp-trac] [WordPress Trac] #16847: Capability check fails for custom post type revision edit
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 14 09:57:06 UTC 2011
#16847: Capability check fails for custom post type revision edit
-------------------------------+------------------------------
Reporter: anmari | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: 3.1
Severity: minor | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by scribu):
* cc: nacin (added)
Comment:
plural capabilities = primitive capabilities (are actually assigned to the
role)
singular capabilities = meta capabilities (map to one or more primitive
capabilities)
Long story short, if you add {{{'map_meta_cap' => true}}} to your post
type definition, it should work.
Maybe nacin can shed some light on wether we should change from the raw
'read_post' to ->cap->read_post in revision.php
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16847#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list