[wp-trac] [WordPress Trac] #20542: Extend register_widget to allow passing params as second argument
WordPress Trac
wp-trac at lists.automattic.com
Tue May 15 20:24:50 UTC 2012
#20542: Extend register_widget to allow passing params as second argument
--------------------------+-----------------------------
Reporter: codearachnid | Owner: codearachnid
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Widgets | Version: 3.4
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+-----------------------------
Comment (by codearachnid):
The benefit is the ability to reuse the same class logic to instantiate
multiple widgets (not talking about the current multiple use instances). A
sample use case is in the http://wordpress.org/extend/plugins/widget-
builder/ plugin where the same widget builder class is called multiple
times with different widget parameters and by extending the widget factory
was able to accomplish what I am proposing to patch in core.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20542#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list