[wp-trac] [WordPress Trac] #8441: Add "MultiWidget" Class for Plugin
Development
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 1 13:55:14 GMT 2008
#8441: Add "MultiWidget" Class for Plugin Development
-------------------------+--------------------------------------------------
Reporter: thornomad | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version:
Severity: normal | Keywords: widget, plugin, multi-widget
-------------------------+--------------------------------------------------
I have a feature enhancement for consideration in the trunk -- not sure
how to go about getting it in there, so I thought I would post it here.
This came about when I tried to add mult-widget functionaility to a plugin
I was contributing to ... I found the process to be far from easy and,
although I got it to work, it required a lot of clunky coding.
Alex Tingle (lead devloper on the plugin) agreed, and created this
enhancement to reduce the clunk: a php class called MultiWidget. The class
handles all the nefarious multi-widget "tricks" required to implement a
multi-widget plugin.
The benefit is that it will provide widget developers with a clean way to
extend their plugins to multi-widget functionality without things "getting
ugly" (as I see it).
See blog post explaining this at: http://blog.firetree.net/2008/11/30
/wordpress-multi-widget/
See the code for this at: http://ec3.pastebin.com/fccfe0a0
See example usage of this class at: http://ec3.pastebin.com/f56a1539d
Again, not sure how to get it considered for inclusion in the Wordpress
trunk, but I think it would benefit countless widget developers who, like
me, run into some barriers when implementing a multi-widget.
Thanks,
Damon
--
Ticket URL: <http://trac.wordpress.org/ticket/8441>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list