[wp-trac] [WordPress Trac] #15779: Can't add featured images to custom post types

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 13 09:21:17 UTC 2010


#15779: Can't add featured images to custom post types
-----------------------------+----------------------------------------------
 Reporter:  somatic          |       Owner:  nacin    
     Type:  defect (bug)     |      Status:  reviewing
 Priority:  normal           |   Milestone:  3.1      
Component:  Post Thumbnails  |     Version:  3.1      
 Severity:  critical         |    Keywords:           
-----------------------------+----------------------------------------------

Comment(by duck_):

 Replying to [comment:11 somatic]:
 > it seems I needed one more add_cap (that I didn't seem to need before
 the new 3.1 map_meta_cap...
 >
 > {{{
 > $admin->add_cap('edit_published_videos');
 > }}}
 >
 > Is there a comprehensive list of all the capabilities that must be
 enabled to replicate typical role behavior with custom post types?

 Take a look at the [http://core.trac.wordpress.org/browser/trunk/wp-
 includes/capabilities.php#L786 source of map_meta_cap] and at the
 [http://codex.wordpress.org/Roles_and_Capabilities Roles and Capabilities]
 page on the codex. Also, it worked for you pre-3.1 because the filter you
 were using mapped to either `edit_*` or `edit_others_*` and didn't ever
 look at post status.

 Any further questions should probably go through a support channel... the
 bug here is being investigated by nacin :)

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


More information about the wp-trac mailing list