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

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 5 23:01:20 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):

 The only issue I see is that http://core.trac.wordpress.org/browser/trunk
 /wp-includes/capabilities.php#L890 checks the `edit_published_post`
 capability which means any `post_type` registered with `map_meta_cap =>
 false` can not be deleted after publishing, even by admins, right?

 My patch was merely a work-around for default settings, but unless I'm
 missing something, it's a bigger issue with `map_meta_cap => false`. I
 would figure, admins should be granted permissions for all post_types.

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


More information about the wp-trac mailing list