[wp-trac] [WordPress Trac] #12567: make post_submit_meta_box more generic

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 28 16:59:43 UTC 2010


#12567: make post_submit_meta_box more generic
---------------------------+------------------------------------------------
 Reporter:  themattharris  |       Owner:                                                                    
     Type:  enhancement    |      Status:  new                                                               
 Priority:  normal         |   Milestone:  Future Release                                                    
Component:  Post Types     |     Version:                                                                    
 Severity:  normal         |    Keywords:  post_status, register_post_status, post_submit_meta_box, metaboxes
---------------------------+------------------------------------------------
Changes (by johnkolbert):

 * cc: johnkolbert (added)


Comment:

 Ok, I've attached a diff of what I've been working on. It's not quite done
 yet, but I wanted to post it for others (aka @ptahdunbar) to see if I'm
 headed in the right direction.

 It adds two new arguments to register_post_status that allow it to be
 attached to a particular post, and determines if it's explicitely shown in
 the status drop down box.

 I also added an optional extra argument to register_post_type that lets
 the post type explicitly declare what post types it handles. If not set,
 it handles all the default post types, plus those declared to it by
 register_post_status.

 This is a pretty early version. I still need to make the meta box handle
 these better, but I'd like any feed back from those more knowledgeable
 then I.

 I can post examples of usage if needed.

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


More information about the wp-trac mailing list