Widget Logic - Version 0.51

Version Description

One important bug fix (fairly major and fairly stupid of me too)

Download this release

Release Info

Developer alanft
Plugin Icon 128x128 Widget Logic
Version 0.51
Comparing to
See all releases

Code changes from version 0.50 to 0.51

Files changed (2) hide show
  1. readme.txt +4 -1
  2. widget_logic.php +3 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.justgiving.com/widgetlogic_cancerresearchuk
4
  Tags: widget, admin, conditional tags, filter, context
5
  Requires at least: 2.8
6
  Tested up to: 3.3
7
- Stable tag: 0.50
8
 
9
  Widget Logic lets you control on which pages widgets appear using WP's conditional tags. It also adds a 'widget_content' filter.
10
 
@@ -137,6 +137,9 @@ function make_alternating_widget_styles($content='')
137
 
138
  == Changelog ==
139
 
 
 
 
140
  = 0.50 =
141
  For the first time since this started on WP 2.3, I've rewritten how the core widget logic function works, so there may be 'bumps ahead'.
142
 
4
  Tags: widget, admin, conditional tags, filter, context
5
  Requires at least: 2.8
6
  Tested up to: 3.3
7
+ Stable tag: 0.51
8
 
9
  Widget Logic lets you control on which pages widgets appear using WP's conditional tags. It also adds a 'widget_content' filter.
10
 
137
 
138
  == Changelog ==
139
 
140
+ = 0.51 =
141
+ One important bug fix (fairly major and fairly stupid of me too)
142
+
143
  = 0.50 =
144
  For the first time since this started on WP 2.3, I've rewritten how the core widget logic function works, so there may be 'bumps ahead'.
145
 
widget_logic.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Widget Logic
4
  Plugin URI: http://freakytrigger.co.uk/wordpress-setup/
5
  Description: Control widgets with WP's conditional tags is_home etc
6
  Author: Alan Trewartha
7
- Version: 0.50
8
  Author URI: http://freakytrigger.co.uk/author/alan/
9
  */
10
 
@@ -160,7 +160,8 @@ function widget_logic_filter_sidebars_widgets($sidebars_widgets)
160
 
161
  // loop through every widget in every sidebar (barring 'wp_inactive_widgets') checking WL for each one
162
  foreach($sidebars_widgets as $widget_area => $widget_list)
163
- { if ($widget_area=='wp_inactive_widgets') next;
 
164
  foreach($widget_list as $pos => $widget_id)
165
  {
166
  $wl_value=(!empty($wl_options[$widget_id]))? stripslashes($wl_options[$widget_id]) : "true";
4
  Plugin URI: http://freakytrigger.co.uk/wordpress-setup/
5
  Description: Control widgets with WP's conditional tags is_home etc
6
  Author: Alan Trewartha
7
+ Version: 0.51
8
  Author URI: http://freakytrigger.co.uk/author/alan/
9
  */
10
 
160
 
161
  // loop through every widget in every sidebar (barring 'wp_inactive_widgets') checking WL for each one
162
  foreach($sidebars_widgets as $widget_area => $widget_list)
163
+ { if ($widget_area=='wp_inactive_widgets' || empty($widget_list)) continue;
164
+
165
  foreach($widget_list as $pos => $widget_id)
166
  {
167
  $wl_value=(!empty($wl_options[$widget_id]))? stripslashes($wl_options[$widget_id]) : "true";