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

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 1 13:36:46 UTC 2010


#14122: Custom "capabilities" appears broken on custom post types
----------------------------+-----------------------------------------------
 Reporter:  jakemgold       |       Owner:  nacin      
     Type:  task (blessed)  |      Status:  assigned   
 Priority:  normal          |   Milestone:  3.1        
Component:  Post Types      |     Version:  3.0        
 Severity:  normal          |    Keywords:  needs-patch
----------------------------+-----------------------------------------------

Comment(by scribu):

 1. Register a public post type:

 {{{register_post_type( 'foo', array('public' => true) );}}}

 2. Go to {{{/wp-admin/post-new.php?post_type=foo}}}

 The following notice shows in the Publish box:

 {{{Notice: Undefined property: stdClass::$delete_posts in
 /home/cristi/svn/wp/wp-includes/capabilities.php on line 852}}}

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


More information about the wp-trac mailing list