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

WordPress Trac noreply at wordpress.org
Tue Jan 15 17:53:05 UTC 2013


#12706: Custom post status bugs in the admin
-------------------------------------------------+-------------------------
 Reporter:  ptahdunbar                           |       Owner:  ptahdunbar
     Type:  task (blessed)                       |      Status:  new
 Priority:  normal                               |   Milestone:  3.6
Component:  Post Types                           |     Version:  3.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch westi-likes needs-testing  |
  needs-refresh needs-unit-tests editorial-flow  |
-------------------------------------------------+-------------------------

Comment (by kovshenin):

 In [attachment:12706.2.diff] took a stab at the "statuses in post types"
 approach, briefly discussed in IRC. You can register post statuses to post
 types in `register_post_type` by using the `statuses` array:

 {{{
 'statuses' => array(
         'pitch' => array(
                 'label' => _x( 'Pitch', 'book' ),
                 'label_count' => _nx_noop( 'Pitch <span
 class="count">(%s)</span>', 'Pitch <span class="count">(%s)</span>',
 'book' ),
                 'public' => false,
                 'protected' => true,
         ),
 ),
 }}}

 Statuses registered with `register_post_status` will be applied to all
 post types. If this approach looks reasonable, I'll continue working on
 some of the other parts touched by the earlier patches.

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


More information about the wp-trac mailing list