Max Mega Menu - Version 2.9.0.1

Version Description

  • Fix: Ordering of widgets when displayed within a standard mega menu
Download this release

Release Info

Developer megamenu
Plugin Icon 128x128 Max Mega Menu
Version 2.9.0.1
Comparing to
See all releases

Code changes from version 2.9 to 2.9.0.1

Files changed (2) hide show
  1. megamenu.php +4 -4
  2. readme.txt +4 -0
megamenu.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Max Mega Menu
4
  * Plugin URI: https://www.megamenu.com
5
  * Description: An easy to use mega menu plugin. Written the WordPress way.
6
- * Version: 2.9
7
  * Author: megamenu.com
8
  * Author URI: https://www.megamenu.com
9
  * License: GPL-2.0+
@@ -35,7 +35,7 @@ if ( ! class_exists( 'Mega_Menu' ) ) :
35
  *
36
  * @var string
37
  */
38
- public $version = '2.9';
39
 
40
 
41
  /**
@@ -800,7 +800,7 @@ if ( ! class_exists( 'Mega_Menu' ) ) :
800
  $parents = array();
801
 
802
  foreach ( $items as $key => $item ) {
803
- if ( absint( $item->menu_item_parent ) === 0 ) {
804
  $parents[] = $item->ID;
805
  $item->depth = 0;
806
  }
@@ -808,7 +808,7 @@ if ( ! class_exists( 'Mega_Menu' ) ) :
808
 
809
  if ( count( $parents ) ) {
810
  foreach ( $items as $key => $item ) {
811
- if ( in_array( $item->menu_item_parent, $parents, true ) ) {
812
  $item->depth = 1;
813
  }
814
  }
3
  * Plugin Name: Max Mega Menu
4
  * Plugin URI: https://www.megamenu.com
5
  * Description: An easy to use mega menu plugin. Written the WordPress way.
6
+ * Version: 2.9.0.1
7
  * Author: megamenu.com
8
  * Author URI: https://www.megamenu.com
9
  * License: GPL-2.0+
35
  *
36
  * @var string
37
  */
38
+ public $version = '2.9.0.1';
39
 
40
 
41
  /**
800
  $parents = array();
801
 
802
  foreach ( $items as $key => $item ) {
803
+ if ( $item->menu_item_parent == 0 ) {
804
  $parents[] = $item->ID;
805
  $item->depth = 0;
806
  }
808
 
809
  if ( count( $parents ) ) {
810
  foreach ( $items as $key => $item ) {
811
+ if ( in_array( $item->menu_item_parent, $parents ) ) {
812
  $item->depth = 1;
813
  }
814
  }
readme.txt CHANGED
@@ -134,6 +134,10 @@ See https://www.megamenu.com for more screenshots
134
 
135
  == Changelog ==
136
 
 
 
 
 
137
  = 2.9 =
138
 
139
  If you have PHP Opcache enabled you may want to update to WordPress 5.5 before applying this update, as it includes this change:
134
 
135
  == Changelog ==
136
 
137
+ = 2.9.0.1 =
138
+
139
+ * Fix: Ordering of widgets when displayed within a standard mega menu
140
+
141
  = 2.9 =
142
 
143
  If you have PHP Opcache enabled you may want to update to WordPress 5.5 before applying this update, as it includes this change: