[wp-trac] [WordPress Trac] #16847: Capability check fails for custom post type revision edit
WordPress Trac
wp-trac at lists.automattic.com
Sun Mar 13 20:39:38 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):
* keywords: needs-patch => reporter-feedback
* component: Revisions => Role/Capability
Comment:
Please paste the code you're using to define the post type.
Also, add the following code somewhere and paste the output:
{{{
function debug_role() {
global $wp_roles;
echo '<pre>';
print_r( $wp_roles->get_role('your_role')->capabilities );
}
add_action('init', 'debug_role');
}}}
Obviously, replace 'your_role' with whatever role you're seeing the
problem with.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16847#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list