[wp-trac] [WordPress Trac] #12987: Some capability checks need update for custom post types

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 13 13:03:15 UTC 2010


#12987: Some capability checks need update for custom post types
--------------------------+-------------------------------------------------
 Reporter:  duck_         |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Post Types    |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 Create new custom post type (e.g. album) with {{{capability_type}}} page.
 Create new subscriber and add necessary capabilities to interact with the
 new post type (most importantly edit_others_pages, publish_pages and
 edit_published_pages). If you login as the new user and try to publish a
 new album post it will only create a album post with status pending. Also
 if you try to edit an album post created by a different user when you
 click update WordPress dies with the error 'You are not allowed to edit
 posts as this user.'

 Cause of both of these problems is in _wp_translate_postdata.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12987>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list