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

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 12 22:34:56 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 somatic):

 Glad to help.

 I just stumbled on a problem with the new args, however - whatever is
 happening now with 3.1 map_meta_cap doesn't seem to cover all the
 capabilities that my 3.0 code did. I am not able to edit other's items
 anymore. I had been using this to add the custom post type capability to a
 role:

 {{{
 $admin = get_role('administrator');

 $admin->add_cap('edit_videos');
 $admin->add_cap('edit_others_videos');
 $admin->add_cap('publish_videos');
 $admin->add_cap('read_private_videos');
 $admin->add_cap('delete_videos');
 $admin->add_cap('delete_others_videos');
 }}}

 I can create new items in my CPT just fine, but not others (admin lists
 show "view" but not "edit, trash, preview"). Even more strange is that I
 can edit other's ''drafts'', but not ''published'' items...

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


More information about the wp-trac mailing list