[wp-trac] [WordPress Trac] #12450: Improve meta_box api

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 1 17:48:06 UTC 2010


#12450: Improve meta_box api
----------------------------+-----------------------------------------------
 Reporter:  prettyboymp     |       Owner:     
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  3.1
Component:  Administration  |     Version:  3.0
 Severity:  normal          |    Keywords:     
----------------------------+-----------------------------------------------

Comment(by scribu):

 Meta boxes could have a class similar to WP_Widget.

 One of the most useful features of this class could be to allow boxes to
 be configurable (think dashboard RSS box).

 > Automatic handling of checking against the revision, DOING_CRON,
 DOING_AJAX, and DOING_AUTOSAVE before firing the save method.

 Note that post boxes are just a subset. So the correct class hierarchy
 would be:

 WP_Box > WP_Box_Post > WP_Box_Post_Publish

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


More information about the wp-trac mailing list