Version Description
- Fix: Revert "When WPML is installed, do not override the wp_nav_menu_args "menu" parameter to allow WPML to display the correct menu (removing the requirement to enable the WPML "Adjust IDs for multilingual functionality" option)"
- Improvement: Make PHP Function and Shortcode textareas readonly
Download this release
Release Info
Developer | megamenu |
Plugin | Max Mega Menu |
Version | 2.5.2 |
Comparing to | |
See all releases |
Code changes from version 2.5.1 to 2.5.2
- classes/settings.class.php +2 -2
- megamenu.php +2 -7
- readme.txt +5 -0
classes/settings.class.php
CHANGED
@@ -977,7 +977,7 @@ class Mega_Menu_Settings {
|
|
977 |
<div class='mega-description'><?php _e("For use in a theme template (usually header.php)", "megamenu"); ?></div>
|
978 |
</td>
|
979 |
<td class='mega-value'>
|
980 |
-
<textarea><?php wp_nav_menu( array( 'theme_location' => '<?php echo $location ?>' ) ); ?></textarea>
|
981 |
</td>
|
982 |
</tr>
|
983 |
<tr>
|
@@ -986,7 +986,7 @@ class Mega_Menu_Settings {
|
|
986 |
<div class='mega-description'><?php _e("For use in a post or page.", "megamenu"); ?></div>
|
987 |
</td>
|
988 |
<td class='mega-value'>
|
989 |
-
<textarea>[maxmegamenu location=<?php echo $location ?>]</textarea>
|
990 |
</td>
|
991 |
</tr>
|
992 |
<tr>
|
977 |
<div class='mega-description'><?php _e("For use in a theme template (usually header.php)", "megamenu"); ?></div>
|
978 |
</td>
|
979 |
<td class='mega-value'>
|
980 |
+
<textarea readonly="readonly"><?php wp_nav_menu( array( 'theme_location' => '<?php echo $location ?>' ) ); ?></textarea>
|
981 |
</td>
|
982 |
</tr>
|
983 |
<tr>
|
986 |
<div class='mega-description'><?php _e("For use in a post or page.", "megamenu"); ?></div>
|
987 |
</td>
|
988 |
<td class='mega-value'>
|
989 |
+
<textarea readonly="readonly">[maxmegamenu location=<?php echo $location ?>]</textarea>
|
990 |
</td>
|
991 |
</tr>
|
992 |
<tr>
|
megamenu.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Max Mega Menu
|
5 |
* Plugin URI: https://www.megamenu.com
|
6 |
* Description: An easy to use mega menu plugin. Written the WordPress way.
|
7 |
-
* Version: 2.5.
|
8 |
* Author: megamenu.com
|
9 |
* Author URI: https://www.megamenu.com
|
10 |
* License: GPL-2.0+
|
@@ -26,7 +26,7 @@ final class Mega_Menu {
|
|
26 |
/**
|
27 |
* @var string
|
28 |
*/
|
29 |
-
public $version = '2.5.
|
30 |
|
31 |
|
32 |
/**
|
@@ -1088,11 +1088,6 @@ final class Mega_Menu {
|
|
1088 |
'walker' => new Mega_Menu_Walker()
|
1089 |
);
|
1090 |
|
1091 |
-
// allow WPML to modify the menu parameter
|
1092 |
-
if ( defined( 'ICL_LANGUAGE_CODE' ) ) {
|
1093 |
-
unset( $defaults['menu'] );
|
1094 |
-
}
|
1095 |
-
|
1096 |
$args = array_merge( $args, apply_filters( "megamenu_nav_menu_args", $defaults, $menu_id, $current_theme_location ) );
|
1097 |
}
|
1098 |
|
4 |
* Plugin Name: Max Mega Menu
|
5 |
* Plugin URI: https://www.megamenu.com
|
6 |
* Description: An easy to use mega menu plugin. Written the WordPress way.
|
7 |
+
* Version: 2.5.2
|
8 |
* Author: megamenu.com
|
9 |
* Author URI: https://www.megamenu.com
|
10 |
* License: GPL-2.0+
|
26 |
/**
|
27 |
* @var string
|
28 |
*/
|
29 |
+
public $version = '2.5.2';
|
30 |
|
31 |
|
32 |
/**
|
1088 |
'walker' => new Mega_Menu_Walker()
|
1089 |
);
|
1090 |
|
|
|
|
|
|
|
|
|
|
|
1091 |
$args = array_merge( $args, apply_filters( "megamenu_nav_menu_args", $defaults, $menu_id, $current_theme_location ) );
|
1092 |
}
|
1093 |
|
readme.txt
CHANGED
@@ -109,6 +109,11 @@ See https://www.megamenu.com for more screenshots
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
112 |
= 2.5.1 =
|
113 |
|
114 |
* Improvement: Redirect to theme editor page after importing a menu theme
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 2.5.2 =
|
113 |
+
|
114 |
+
* Fix: Revert "When WPML is installed, do not override the wp_nav_menu_args "menu" parameter to allow WPML to display the correct menu (removing the requirement to enable the WPML "Adjust IDs for multilingual functionality" option)"
|
115 |
+
* Improvement: Make PHP Function and Shortcode textareas readonly
|
116 |
+
|
117 |
= 2.5.1 =
|
118 |
|
119 |
* Improvement: Redirect to theme editor page after importing a menu theme
|