[wp-trac] Re: [WordPress Trac] #8441: New Widget API based on
MultiWidget Class
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 23 18:28:52 GMT 2009
#8441: New Widget API based on MultiWidget Class
----------------------------+-----------------------------------------------
Reporter: thornomad | Owner: azaozz
Type: task (blessed) | Status: new
Priority: normal | Milestone: 2.8
Component: Widgets | Version: 2.8
Severity: normal | Keywords: widget, plugin, multi-widget
----------------------------+-----------------------------------------------
Comment(by scribu):
widget_setup.patch adds a new mandatory method called setup() where the
widget args are defined.
This method is then called from the WP_Widget constructor.
The advantage is that you don't have to deal with messy constructors for
each widget. Also, the code is easier to read.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8441#comment:27>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list