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

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 28 01:49:06 UTC 2010


#14122: Custom "capabilities" appears broken on custom post types
--------------------------+-------------------------------------------------
 Reporter:  jakemgold     |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Post Types    |     Version:  3.0            
 Severity:  major         |    Keywords:  2nd-opinion    
--------------------------+-------------------------------------------------
Changes (by nacin):

  * keywords:  capabilities, roles, custom post types => 2nd-opinion


Comment:

 We didn't implement the mapping of capabilities of custom post types.
 Right now you have to roll our own handling of custom capabilities
 entirely, using the map_meta_cap filter. I imagine the errors are due to
 edit_post being the capability, which then goes through map_meta_cap and
 maybe it determines you need edit_posts (instead of edit_movies)? I'm not
 sure.

 I'm not sure if it was our intent entirely to offer such fine-grained
 control and at least not offer the ability for map_meta_cap to do its
 magic.

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


More information about the wp-trac mailing list