[wp-trac] [WordPress Trac] #14122: Custom "capabilities" appears broken on custom post types

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 3 23:08:47 UTC 2010


#14122: Custom "capabilities" appears broken on custom post types
----------------------------+-----------------------------------------------
 Reporter:  jakemgold       |       Owner:  nacin      
     Type:  task (blessed)  |      Status:  assigned   
 Priority:  normal          |   Milestone:  3.1        
Component:  Post Types      |     Version:  3.0        
 Severity:  normal          |    Keywords:  needs-patch
----------------------------+-----------------------------------------------

Comment(by WraithKenny):

 $edit_published_posts, $delete_posts, and $delete_published_posts (etc.)
 are checked for, but aren't set by register_post_type unless
 'map_meta_cap' is true, but the default is set to false. (Not setting
 'map_meta_cap' didn't break permissions in 3.0 so this is a regression?)

 http://core.trac.wordpress.org/browser/trunk/wp-includes/post.php#L1066

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14122#comment:33>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list