Max Mega Menu - Version 2.9.8

Version Description

  • Fix: Delay forcing the mobile sub menu width until after the 'mega-menu-open' class has been added
  • Fix: Add quotes to font families that contain a number, e.g. 'Baloo 2'
Download this release

Release Info

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

Code changes from version 2.9.7 to 2.9.8

classes/style-manager.class.php CHANGED
@@ -784,6 +784,20 @@ if ( ! class_exists( 'Mega_Menu_Style_Manager' ) ) :
784
 
785
  $vars[ $name ] = "'" . stripslashes( htmlspecialchars_decode( $value ) ) . "'";
786
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
787
  continue;
788
  }
789
 
784
 
785
  $vars[ $name ] = "'" . stripslashes( htmlspecialchars_decode( $value ) ) . "'";
786
 
787
+ // find font names that end with/contain a number, e.g. Baloo 2, and add extra quotes so that they still retain quotes when CSS is compiled.
788
+ $font_name_with_single_quotes = $vars[ $name ];
789
+ $font_name_with_no_quotes = str_replace( "'", "", $font_name_with_single_quotes );
790
+ $font_name_parts = explode( " ", $font_name_with_no_quotes );
791
+
792
+ if ( is_array( $font_name_parts) ) {
793
+ foreach ( $font_name_parts as $part ) {
794
+ if ( is_numeric ($part) ) {
795
+ $vars[ $name ] = "\"{$font_name_with_single_quotes}\"";
796
+ continue;
797
+ }
798
+ }
799
+ }
800
+
801
  continue;
802
  }
803
 
js/maxmegamenu.js CHANGED
@@ -629,14 +629,14 @@
629
 
630
  $(".mega-toggle-label, .mega-toggle-animated", $toggle_bar).attr("aria-expanded", "true");
631
 
632
- plugin.toggleBarForceWidth();
633
-
634
  if (plugin.settings.effect_mobile === "slide") {
635
  $menu.animate({"height":"show"}, plugin.settings.effect_speed_mobile);
636
  }
637
 
638
  $toggle_bar.addClass("mega-menu-open");
639
 
 
 
640
  $menu.triggerHandler("mmm:showMobileMenu");
641
  };
642
 
629
 
630
  $(".mega-toggle-label, .mega-toggle-animated", $toggle_bar).attr("aria-expanded", "true");
631
 
 
 
632
  if (plugin.settings.effect_mobile === "slide") {
633
  $menu.animate({"height":"show"}, plugin.settings.effect_speed_mobile);
634
  }
635
 
636
  $toggle_bar.addClass("mega-menu-open");
637
 
638
+ plugin.toggleBarForceWidth();
639
+
640
  $menu.triggerHandler("mmm:showMobileMenu");
641
  };
642
 
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
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.7';
39
 
40
 
41
  /**
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.8
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.8';
39
 
40
 
41
  /**
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: megamenu
3
  Tags: menu, megamenu, mega menu, navigation, mobile
4
  Requires at least: 4.9
5
  Tested up to: 6.0
6
- Stable tag: 2.9.6
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,11 @@ See https://www.megamenu.com for more screenshots
134
 
135
  == Changelog ==
136
 
 
 
 
 
 
137
  = 2.9.7 =
138
 
139
  * Fix: Position of Toggle Bar Designer in theme editor when using PHP 8
3
  Tags: menu, megamenu, mega menu, navigation, mobile
4
  Requires at least: 4.9
5
  Tested up to: 6.0
6
+ Stable tag: 2.9.7
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.8 =
138
+
139
+ * Fix: Delay forcing the mobile sub menu width until after the 'mega-menu-open' class has been added
140
+ * Fix: Add quotes to font families that contain a number, e.g. 'Baloo 2'
141
+
142
  = 2.9.7 =
143
 
144
  * Fix: Position of Toggle Bar Designer in theme editor when using PHP 8