[wp-trac] [WordPress Trac] #9651: New Widget API - breaks plugins -
widget options
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 27 02:54:45 GMT 2009
#9651: New Widget API - breaks plugins - widget options
--------------------------+-------------------------------------------------
Reporter: ceenz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Widgets | Version: 2.8
Severity: normal | Keywords: widget, plugin, multi-widget, widget options, widget context, widget logic
--------------------------+-------------------------------------------------
The new Widget API breaks plugins 'Widget Context' and 'Widget Logic'.
Both these plugins attempt to filter the display of widgets through
different settings. Both plugins employee complicated hacks to WP and The
Loop to achieve their means.
These hacks are now broken with the introduction of the new Widget API.
It is my belief due to the nature of the hacks employed by the above
plugins there should be no work around in the new Widget API, however the
goals and aims of these plugins maybe easily implemented through the
addition of three new callbacks in the new API.
I have included a patch to the main widget.php that enables plugins to
achieve the addition of filtering the display of widgets, and the addition
of 'default' widget display options. I have also attached a plugin that
makes use of these new callbacks to give widgets filter options that limit
the display of widgets to the site homepage, individual page, categories
etc.
I would very much like this patch to be included in the main branch.
Cheers,
Chris
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9651>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list