[wp-trac] [WordPress Trac] #15066: Create a Meta Box class
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 8 01:32:49 UTC 2010
#15066: Create a Meta Box class
-------------------------+--------------------------------------------------
Reporter: ericmann | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Widgets became much more extensible when we introduced the WP_Widget class
in version 2.8. New widgets were easier to make, and we finally had the
ability to create multi-instance widgets without a lot of coding overhead
and headaches.
Meta Boxes are used by themes and plug-ins in a similar fashion to
customize the layout and functionality of the post/page/custom-post-type
edit screen. Unfortunately, the code for creating a new meta box and
handling the subsequent form submission is difficult to track down, prone
to errors, and nearly impossible to use in a multi-instance situation.
We should abstract the meta box creation process so that adding a new meta
box is as easy as adding a new widget - just extend a WP_Meta_Box class to
add the functionality.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15066>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list