New Widget API - breaks plugins - widget options
|Reported by:||ceenz||Owned by:|
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.
Change History (22)
comment:5 Viper007Bond — 5 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
- Keywords has-patch dev-feedback added; widget plugin multi-widget widget options widget context widget logic removed