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

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 28 02:22:50 UTC 2010


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

  * owner:  => nacin
  * status:  new => reviewing
  * severity:  major => normal
  * milestone:  Awaiting Review => 3.1


Comment:

 Slating this for 3.1 Initial thoughts:

  - Opt-in automagic meta capability handling, the way core does it.

  - Splitting capability_type based on what appears to be two different
 functionalities -- re-routing in map_meta_cap, but also controlling the
 defaults for the capabilities array. That way we're splitting the default
 naming of the capabilities array from this remapping. Only if we can do
 this in a back compat way. Ideas welcome.

  - Allowing capability_type to take an array() such as `array( 'box',
 'boxes' )`, to handle odd plurals.

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


More information about the wp-trac mailing list