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

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 2 22:04:16 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 WraithKenny):

 In addition to scribu's test, on /wp-admin/edit.php?post_type=foo the same
 notice is present.

 Interestingly, if you don't publish, and just save draft, the entry is
 still editable.

 If you publish, then the /wp-admin/edit.php?post_type=foo screen shows,
 {{{Notice: Undefined property: stdClass::$edit_published_posts in
 /mnt/stor1-wc1-dfw1/384190/384265/ken.unfocus.com/web/content/wp-
 includes/capabilities.php on line 890}}}
 twice above the table, and once below the view link, and also a
 {{{Notice: Undefined property: stdClass::$delete_published_posts in
 /mnt/stor1-wc1-dfw1/384190/384265/ken.unfocus.com/web/content/wp-
 includes/capabilities.php on line 846}}} above the link.

 The entry is also editable.

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


More information about the wp-trac mailing list