Version Description
- Fix: Active Menu Instance incorrectly applied
Download this release
Release Info
Developer | megamenu |
Plugin | Max Mega Menu |
Version | 2.9.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.9.0.1 to 2.9.0.2
- classes/pages/page.php +8 -0
- megamenu.php +4 -4
- readme.txt +5 -1
classes/pages/page.php
CHANGED
@@ -152,6 +152,14 @@ if ( ! class_exists( 'Mega_Menu_Page' ) ) :
|
|
152 |
?>
|
153 |
</div>
|
154 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
</div>
|
156 |
|
157 |
<div class='megamenu_wrap'>
|
152 |
?>
|
153 |
</div>
|
154 |
</div>
|
155 |
+
|
156 |
+
<?php
|
157 |
+
if ( isset( $_GET['debug'] ) ) {
|
158 |
+
echo "<textarea style='width: 100%; height: 400px;'>";
|
159 |
+
var_dump( get_option("megamenu_settings") );
|
160 |
+
echo "</textarea>";
|
161 |
+
}
|
162 |
+
?>
|
163 |
</div>
|
164 |
|
165 |
<div class='megamenu_wrap'>
|
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.0.
|
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.0.
|
39 |
|
40 |
|
41 |
/**
|
@@ -1057,10 +1057,10 @@ if ( ! class_exists( 'Mega_Menu' ) ) :
|
|
1057 |
if ( strpos( $active_instance, ',' ) || is_numeric( $active_instance ) ) {
|
1058 |
$active_instances = explode( ',', $active_instance );
|
1059 |
|
1060 |
-
if ( ! in_array( $num_times_called, $active_instances
|
1061 |
return $args;
|
1062 |
}
|
1063 |
-
}
|
1064 |
return $args;
|
1065 |
}
|
1066 |
}
|
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.2
|
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.2';
|
39 |
|
40 |
|
41 |
/**
|
1057 |
if ( strpos( $active_instance, ',' ) || is_numeric( $active_instance ) ) {
|
1058 |
$active_instances = explode( ',', $active_instance );
|
1059 |
|
1060 |
+
if ( ! in_array( $num_times_called, $active_instances ) ) {
|
1061 |
return $args;
|
1062 |
}
|
1063 |
+
} else if ( isset( $args['container_id'] ) && $active_instance != $args['container_id'] ) {
|
1064 |
return $args;
|
1065 |
}
|
1066 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: megamenu
|
|
3 |
Tags: menu, megamenu, mega menu, navigation, widget, dropdown menu, drag and drop, mobile, responsive, retina, theme editor, widget, shortcode, sidebar, icons, dashicons
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.5
|
6 |
-
Stable tag: 2.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -134,6 +134,10 @@ See https://www.megamenu.com for more screenshots
|
|
134 |
|
135 |
== Changelog ==
|
136 |
|
|
|
|
|
|
|
|
|
137 |
= 2.9.0.1 =
|
138 |
|
139 |
* Fix: Ordering of widgets when displayed within a standard mega menu
|
3 |
Tags: menu, megamenu, mega menu, navigation, widget, dropdown menu, drag and drop, mobile, responsive, retina, theme editor, widget, shortcode, sidebar, icons, dashicons
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.5
|
6 |
+
Stable tag: 2.9.0.1
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
134 |
|
135 |
== Changelog ==
|
136 |
|
137 |
+
= 2.9.0.2 =
|
138 |
+
|
139 |
+
* Fix: Active Menu Instance incorrectly applied
|
140 |
+
|
141 |
= 2.9.0.1 =
|
142 |
|
143 |
* Fix: Ordering of widgets when displayed within a standard mega menu
|