[wp-trac] [WordPress Trac] #17668: wp_post_revision_title capabilities
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 7 05:30:45 UTC 2011
#17668: wp_post_revision_title capabilities
--------------------------+------------------
Reporter: ejdanderson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.2
Component: Revisions | Version: 3.2
Severity: minor | Resolution:
Keywords: has-patch |
--------------------------+------------------
Comment (by aaroncampbell):
Replying to [comment:2 dd32]:
> It looks like the post type object needs to be changed to the parent
type completely rather than the revision type to me.
Since a custom post type can specify an edit_post cap, it could definitely
be different from the the edit_post cap of revisions. We'll need to get
the parent_post_type->cap->edit_post and pass that to `current_user_can`.
I'm going to look into a solution now.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17668#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list