kasparsd / widget-context-wporg

Widget Context for WordPress
https://widgetcontext.com
Other
42 stars 13 forks source link

Fix for is_active_sidebar & is_dynamic_sidebar issues #4

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hiding by filtering widget_display_callback makes is_active_sidebar return TRUE on sidebars with only one widget which happen to be contextually hidden.

Unsetting the contextually hidden widget from the sidebar on the front end restores the desired behavior

Props to Widget Logic.

TristanRineer commented 11 years ago

Excellent! The solution works perfectly.

Hopefully it will be merged into the official release soon, I have a lot of clients who depend on Widget Context; a majority of them do their own updates, and without this fix, their sites will all have broken layouts.