Custom Menu Wizard Widget - Version 1.2.2

Version Description

  • bugfix : fallback for Current Item with no children was failing because the parent's children weren't being picked out correctly
Download this release

Release Info

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

Code changes from version 1.2.1 to 1.2.2

Files changed (4) hide show
  1. custom-menu-wizard.js +1 -1
  2. custom-menu-wizard.php +6 -3
  3. demo.html +1 -1
  4. readme.txt +5 -1
custom-menu-wizard.js CHANGED
@@ -1,5 +1,5 @@
1
  /* Plugin Name: Custom Menu Wizard
2
- * Version: 1.2.1
3
  * Author: Roger Barrett
4
  *
5
  * Script for controlling this widget's options (in Admin -> Widgets)
1
  /* Plugin Name: Custom Menu Wizard
2
+ * Version: 1.2.2
3
  * Author: Roger Barrett
4
  *
5
  * Script for controlling this widget's options (in Admin -> Widgets)
custom-menu-wizard.php CHANGED
@@ -3,13 +3,15 @@
3
  * Plugin Name: Custom Menu Wizard
4
  * Plugin URI: http://wordpress.org/plugins/custom-menu-wizard/
5
  * Description: Full control over the wp_nav_menu parameters for a custom menu; filter for specific level(s), for children of a selected menu item, the current menu item, or its parent or root item
6
- * Version: 1.2.1
7
  * Author: Roger Barrett
8
  * Author URI: http://www.wizzud.com/
9
  * License: GPL2+
10
  */
11
 
12
  /*
 
 
13
  * v1.2.1 change log:
14
  * - added some extra custom classes, when applicable : cmw-fellback-to-current & cmw-fellback-to-parent (on outer UL/OL) and cmw-the-included-parent, cmw-an-included-parent-sibling & cmw-an-included-ancestor (on relevant LIs)
15
  * - corrected 'show all from start level 1' processing so that custom classes get applied and 'Title from "Current" Item' works (regardless of filter settings)
@@ -34,7 +36,7 @@
34
  * - moved the setting of 'disabled' attributes on INPUTs/SELECTs from PHP into javascript
35
  */
36
 
37
- $Custom_Menu_Wizard_Widget_Version = '1.2.1';
38
 
39
  /**
40
  * registers the widget and adds the shortcode
@@ -239,7 +241,8 @@ class Custom_Menu_Wizard_Walker extends Walker_Nav_Menu {
239
  // - ... optionally plus its parent (if there is one) and the parent's siblings
240
  //keep_ids[0] is the id of the current item; put the parent's kids into keep_items...
241
  foreach( $temp[ $temp[ $keep_ids[0] ]['parent'] ]['kids'] as $item ){
242
- $keep_items[] = $item;
 
243
  }
244
  $include_parent = $include_parent || $cmw['fallback_nc_include_parent'];
245
  $include_parent_siblings = $include_parent_siblings || $cmw['fallback_nc_include_parent_siblings'];
3
  * Plugin Name: Custom Menu Wizard
4
  * Plugin URI: http://wordpress.org/plugins/custom-menu-wizard/
5
  * Description: Full control over the wp_nav_menu parameters for a custom menu; filter for specific level(s), for children of a selected menu item, the current menu item, or its parent or root item
6
+ * Version: 1.2.2
7
  * Author: Roger Barrett
8
  * Author URI: http://www.wizzud.com/
9
  * License: GPL2+
10
  */
11
 
12
  /*
13
+ * v1.2.2 change log:
14
+ * - bugfix : fallback for Current Item with no children was failing because the parent's children weren't being picked out correctly
15
  * v1.2.1 change log:
16
  * - added some extra custom classes, when applicable : cmw-fellback-to-current & cmw-fellback-to-parent (on outer UL/OL) and cmw-the-included-parent, cmw-an-included-parent-sibling & cmw-an-included-ancestor (on relevant LIs)
17
  * - corrected 'show all from start level 1' processing so that custom classes get applied and 'Title from "Current" Item' works (regardless of filter settings)
36
  * - moved the setting of 'disabled' attributes on INPUTs/SELECTs from PHP into javascript
37
  */
38
 
39
+ $Custom_Menu_Wizard_Widget_Version = '1.2.2';
40
 
41
  /**
42
  * registers the widget and adds the shortcode
241
  // - ... optionally plus its parent (if there is one) and the parent's siblings
242
  //keep_ids[0] is the id of the current item; put the parent's kids into keep_items...
243
  foreach( $temp[ $temp[ $keep_ids[0] ]['parent'] ]['kids'] as $item ){
244
+ //v1.2.2 note : each 'kid' is an index into $elements!
245
+ $keep_items[] = $elements[ $item ];
246
  }
247
  $include_parent = $include_parent || $cmw['fallback_nc_include_parent'];
248
  $include_parent_siblings = $include_parent_siblings || $cmw['fallback_nc_include_parent_siblings'];
demo.html CHANGED
@@ -72,7 +72,7 @@
72
  <form>
73
  <div id='formheader'>
74
  <strong>Custom Menu Wizard</strong> Interactive Demo
75
- <br /><small>v1.2.1 <em>(subset of admin options)</em></small><strong class="tryit"><em>Try it out&hellip;</em></strong>
76
  </div>
77
  <div id='formfields'>
78
 
72
  <form>
73
  <div id='formheader'>
74
  <strong>Custom Menu Wizard</strong> Interactive Demo
75
+ <br /><small>v1.2.2 <em>(subset of admin options)</em></small><strong class="tryit"><em>Try it out&hellip;</em></strong>
76
  </div>
77
  <div id='formfields'>
78
 
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: 1.2.1
7
  License: GPLv2 or Later
8
 
9
  Custom Menu Wizard Widget : Show branches or levels of your menu in a widget, with full customisation.
@@ -398,6 +398,10 @@ If you have a question or problem, please use the integrated Support forum.
398
 
399
  == Changelog ==
400
 
 
 
 
 
401
  = 1.2.1 =
402
 
403
  * added some extra custom classes, when applicable : cmw-fellback-to-current & cmw-fellback-to-parent (on outer UL/OL) and cmw-the-included-parent, cmw-an-included-parent-sibling & cmw-an-included-ancestor (on relevant LIs)
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: 1.2.2
7
  License: GPLv2 or Later
8
 
9
  Custom Menu Wizard Widget : Show branches or levels of your menu in a widget, with full customisation.
398
 
399
  == Changelog ==
400
 
401
+ = 1.2.2 =
402
+
403
+ * bugfix : fallback for Current Item with no children was failing because the parent's children weren't being picked out correctly
404
+
405
  = 1.2.1 =
406
 
407
  * added some extra custom classes, when applicable : cmw-fellback-to-current & cmw-fellback-to-parent (on outer UL/OL) and cmw-the-included-parent, cmw-an-included-parent-sibling & cmw-an-included-ancestor (on relevant LIs)