Custom Menu Wizard Widget - Version 2.0.1

Version Description

  • bugfix : an incorrect test for a specific-items filter prevented show-all producing any output
Download this release

Release Info

Developer wizzud
Plugin Icon 128x128 Custom Menu Wizard Widget
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0.0 to 2.0.1

custom-menu-wizard.css CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * custom-menu-wizard.css
3
- * Version: 2.0.0
4
  */
5
  /*widget admin style...*/
6
  /*NB .widget-content class is not present in accessibility mode*/
1
  /**
2
  * custom-menu-wizard.css
3
+ * Version: 2.0.1
4
  */
5
  /*widget admin style...*/
6
  /*NB .widget-content class is not present in accessibility mode*/
custom-menu-wizard.js CHANGED
@@ -1,5 +1,5 @@
1
  /* Plugin Name: Custom Menu Wizard
2
- * Version: 2.0.0
3
  * Author: Roger Barrett
4
  *
5
  * Script for controlling this widget's options (in Admin -> Widgets)
1
  /* Plugin Name: Custom Menu Wizard
2
+ * Version: 2.0.1
3
  * Author: Roger Barrett
4
  *
5
  * Script for controlling this widget's options (in Admin -> Widgets)
custom-menu-wizard.min.js CHANGED
@@ -1,5 +1,5 @@
1
  /* Plugin Name: Custom Menu Wizard
2
- * Version: 2.0.0
3
  * Author: Roger Barrett
4
  *
5
  * Script for controlling this widget's options (in Admin -> Widgets)
1
  /* Plugin Name: Custom Menu Wizard
2
+ * Version: 2.0.1
3
  * Author: Roger Barrett
4
  *
5
  * Script for controlling this widget's options (in Admin -> Widgets)
custom-menu-wizard.php CHANGED
@@ -3,13 +3,16 @@
3
  * Plugin Name: Custom Menu Wizard
4
  * Plugin URI: http://wordpress.org/plugins/custom-menu-wizard/
5
  * Description: Show any part of a custom menu in a Widget, or in content using a Shortcode. Customise the output with extra classes or html; filter by current menu item or a specific item; set a depth, show the parent(s), change the list style, etc. Use the included emulator to assist with the filter settings.
6
- * Version: 2.0.0
7
  * Author: Roger Barrett
8
  * Author URI: http://www.wizzud.com/
9
  * License: GPL2+
10
  */
11
 
12
  /*
 
 
 
13
  * v2.0.0 change log:
14
  * - Possible Breaker! : start level has been made consistent for showall and kids-off filters. Previously, a kids-of filter on an item at level 2,
15
  * with start level set to 4, would return no output because the immediate kids (at level 3) were outside the start level; now, there will
@@ -48,7 +51,7 @@
48
  * - moved the setting of 'disabled' attributes on INPUTs/SELECTs from PHP into javascript
49
  */
50
 
51
- $Custom_Menu_Wizard_Widget_Version = '2.0.0';
52
 
53
  /**
54
  * registers the widget and adds the shortcode
@@ -227,7 +230,7 @@ class Custom_Menu_Wizard_Walker extends Walker_Nav_Menu {
227
  $cmw['_walker']['fellback'] = false;
228
 
229
  $find_kids_of = $cmw['filter'] > 0;
230
- $find_specific_items = $cmw['filter'] < 1; //v2.0.0
231
  $find_current_item = $find_kids_of && empty( $cmw['filter_item'] );
232
  $find_current_parent = $find_kids_of && $cmw['filter_item'] == -1; //v1.1.0
233
  $find_current_root = $find_kids_of && $cmw['filter_item'] == -2; //v1.1.0
3
  * Plugin Name: Custom Menu Wizard
4
  * Plugin URI: http://wordpress.org/plugins/custom-menu-wizard/
5
  * Description: Show any part of a custom menu in a Widget, or in content using a Shortcode. Customise the output with extra classes or html; filter by current menu item or a specific item; set a depth, show the parent(s), change the list style, etc. Use the included emulator to assist with the filter settings.
6
+ * Version: 2.0.1
7
  * Author: Roger Barrett
8
  * Author URI: http://www.wizzud.com/
9
  * License: GPL2+
10
  */
11
 
12
  /*
13
+ * v2.0.1 change log:
14
+ * - fixed bug that set a specific items filter when it shouldn't have been set, and prevented show-all working
15
+ *
16
  * v2.0.0 change log:
17
  * - Possible Breaker! : start level has been made consistent for showall and kids-off filters. Previously, a kids-of filter on an item at level 2,
18
  * with start level set to 4, would return no output because the immediate kids (at level 3) were outside the start level; now, there will
51
  * - moved the setting of 'disabled' attributes on INPUTs/SELECTs from PHP into javascript
52
  */
53
 
54
+ $Custom_Menu_Wizard_Widget_Version = '2.0.1';
55
 
56
  /**
57
  * registers the widget and adds the shortcode
230
  $cmw['_walker']['fellback'] = false;
231
 
232
  $find_kids_of = $cmw['filter'] > 0;
233
+ $find_specific_items = $cmw['filter'] < 0; //v2.0.0 //v2.0.1:bug fixed (changed < 1 to < 0)
234
  $find_current_item = $find_kids_of && empty( $cmw['filter_item'] );
235
  $find_current_parent = $find_kids_of && $cmw['filter_item'] == -1; //v1.1.0
236
  $find_current_root = $find_kids_of && $cmw['filter_item'] == -2; //v1.1.0
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wizzud
3
  Tags: menu,widget,widgets,navigation,nav,custom menus,custom menu,partial menu,menu level,menu branch
4
  Requires at least: 3.0.1
5
  Tested up to: 3.6
6
- Stable tag: 2.0.0
7
  License: GPLv2 or Later
8
 
9
  Show branches or levels of your menu in a widget, or in content using a shortcode, with full customisation.
@@ -481,6 +481,10 @@ It was a close call, but since the Output options can extend the final list - an
481
 
482
  == Changelog ==
483
 
 
 
 
 
484
  = 2.0.0 =
485
 
486
  * **! Possible Breaker !** The calculation of `Start Level` has been made consistent across the `Show all` and `Children of` filters : if you previously had a setup where you were filtering for the children of an item at level 2, with start level set to 4, there would have been no output because the immediate children (at level 3) were outside the start level. Now, there *will* be output, starting with the grand-children (at level 4).
@@ -555,6 +559,10 @@ Initial release
555
 
556
  == Upgrade Notice ==
557
 
 
 
 
 
558
  = 2.0.0 =
559
 
560
  **! Possible Breaker !** My apologies if this affects you, but there are 2 possible scenarios where settings that previously resulted in no output *might* now produce output :
3
  Tags: menu,widget,widgets,navigation,nav,custom menus,custom menu,partial menu,menu level,menu branch
4
  Requires at least: 3.0.1
5
  Tested up to: 3.6
6
+ Stable tag: 2.0.1
7
  License: GPLv2 or Later
8
 
9
  Show branches or levels of your menu in a widget, or in content using a shortcode, with full customisation.
481
 
482
  == Changelog ==
483
 
484
+ = 2.0.1 =
485
+
486
+ * bugfix : an incorrect test for a specific-items filter prevented show-all producing any output
487
+
488
  = 2.0.0 =
489
 
490
  * **! Possible Breaker !** The calculation of `Start Level` has been made consistent across the `Show all` and `Children of` filters : if you previously had a setup where you were filtering for the children of an item at level 2, with start level set to 4, there would have been no output because the immediate children (at level 3) were outside the start level. Now, there *will* be output, starting with the grand-children (at level 4).
559
 
560
  == Upgrade Notice ==
561
 
562
+ = 2.0.1 =
563
+
564
+ Fixed a bug whereby a test for a specific-items filter prevented show-all from producing any output.
565
+
566
  = 2.0.0 =
567
 
568
  **! Possible Breaker !** My apologies if this affects you, but there are 2 possible scenarios where settings that previously resulted in no output *might* now produce output :