[wp-trac] [WordPress Trac] #12706: Custom post status bugs in the admin

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 4 15:29:04 UTC 2010


#12706: Custom post status bugs in the admin
----------------------------+-----------------------------------------------
 Reporter:  ptahdunbar      |       Owner:  ptahdunbar 
     Type:  task (blessed)  |      Status:  new        
 Priority:  normal          |   Milestone:  3.1        
Component:  Post Types      |     Version:             
 Severity:  normal          |    Keywords:  needs-patch
----------------------------+-----------------------------------------------

Comment(by kevinB):

 Replying to [comment:19 ptahdunbar]:
 > Replying to [comment:18 kevinB]:
 > > Can we please default post_type to null?  This is the standard
 approach for everything except the query variable, making
 > > {{{
 > > ! empty ($status_obj->post_type)
 > > }}}
 > > sufficient to detect post_type customization in 3.0 and 3.1+
 >
 > The post_type param is required as your registering a post status to a
 post type. Defaulting to null means that the post status shouldn't
 register.

 That breaks the API for plugins and themes which were written for WP 3.0.
 Why not make post_type part of the args array?  Then calling code can
 associate the status with all post types if the property is defaulted null
 or not set.

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


More information about the wp-trac mailing list