Max Mega Menu - Version 2.1.4

Version Description

[11/04/2016] =

  • Fix for WordPress v4.5: Unable to save mega menu settings on Appearance > Menus page (Works around this change to core: https://core.trac.wordpress.org/changeset/36426)
  • Change: Allow textarea fields in toggle blocks
  • Change: Remove margin from Spacer toggle blocks
Download this release

Release Info

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

Code changes from version 2.1.5 to 2.1.4

classes/menu-item-manager.class.php CHANGED
@@ -291,7 +291,13 @@ class Mega_Menu_Menu_Item_Manager {
291
  $return .= __("Hide Text", "megamenu");
292
  $return .= ' </td>';
293
  $return .= ' <td class="mega-value">';
294
- $return .= ' <input type="checkbox" name="settings[hide_text]" value="true" ' . checked( $menu_item_meta['hide_text'], 'true', false ) . ' />';
 
 
 
 
 
 
295
  $return .= ' </td>';
296
  $return .= ' </tr>';
297
  $return .= ' <tr>';
291
  $return .= __("Hide Text", "megamenu");
292
  $return .= ' </td>';
293
  $return .= ' <td class="mega-value">';
294
+
295
+ if ( $this->menu_item_depth == 0 ) {
296
+ $return .= '<input type="checkbox" name="settings[hide_text]" value="true" ' . checked( $menu_item_meta['hide_text'], 'true', false ) . ' />';
297
+ } else {
298
+ $return .= '<em>' . __("Option only available for top level menu items", "megamenu") . '</em>';
299
+ }
300
+
301
  $return .= ' </td>';
302
  $return .= ' </tr>';
303
  $return .= ' <tr>';
classes/walker.class.php CHANGED
@@ -129,7 +129,7 @@ class Mega_Menu_Walker extends Walker_Nav_Menu {
129
  $item_output = $args->before;
130
  $item_output .= '<a'. $attributes .'>';
131
 
132
- if ( $settings['hide_text'] == 'true' ) {
133
  /** This filter is documented in wp-includes/post-template.php */
134
  } else {
135
  $item_output .= $args->link_before . apply_filters( 'megamenu_the_title', $item->title, $item->ID ) . $args->link_after;
129
  $item_output = $args->before;
130
  $item_output .= '<a'. $attributes .'>';
131
 
132
+ if ( $settings['hide_text'] == 'true' && $depth == 0 ) {
133
  /** This filter is documented in wp-includes/post-template.php */
134
  } else {
135
  $item_output .= $args->link_before . apply_filters( 'megamenu_the_title', $item->title, $item->ID ) . $args->link_after;
megamenu.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Max Mega Menu
5
  * Plugin URI: https://www.maxmegamenu.com
6
  * Description: Mega Menu for WordPress.
7
- * Version: 2.1.5
8
  * Author: Tom Hemsley
9
  * Author URI: https://www.maxmegamenu.com
10
  * License: GPL-2.0+
@@ -26,7 +26,7 @@ final class Mega_Menu {
26
  /**
27
  * @var string
28
  */
29
- public $version = '2.1.5';
30
 
31
 
32
  /**
4
  * Plugin Name: Max Mega Menu
5
  * Plugin URI: https://www.maxmegamenu.com
6
  * Description: Mega Menu for WordPress.
7
+ * Version: 2.1.4
8
  * Author: Tom Hemsley
9
  * Author URI: https://www.maxmegamenu.com
10
  * License: GPL-2.0+
26
  /**
27
  * @var string
28
  */
29
+ public $version = '2.1.4';
30
 
31
 
32
  /**
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === Max Mega Menu ===
2
  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: 3.8
5
  Tested up to: 4.5
6
- Stable tag: 2.1.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -92,10 +92,6 @@ See https://www.maxmegamenu.com for more screenshots
92
 
93
  == Changelog ==
94
 
95
- = 2.1.5 [13/04/2016] =
96
-
97
- * Change: Allow "Hide Text" option to be used on second level menu items
98
-
99
  = 2.1.4 [11/04/2016] =
100
 
101
  * Fix for WordPress v4.5: Unable to save mega menu settings on Appearance > Menus page
1
+ === Max Mega Menu ===
2
  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: 3.8
5
  Tested up to: 4.5
6
+ Stable tag: 2.1.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
92
 
93
  == Changelog ==
94
 
 
 
 
 
95
  = 2.1.4 [11/04/2016] =
96
 
97
  * Fix for WordPress v4.5: Unable to save mega menu settings on Appearance > Menus page