WP Mobile Menu - Version 2.8.2.6

Version Description

  • Fix! - Revert the HTML of the Mobile Menu to the wp_footer hook instead wp_open_body because there are still many themes not following the guidelines
  • Fix! - Logo was disappearing in Naked Header mode
Download this release

Release Info

Developer takanakui
Plugin Icon 128x128 WP Mobile Menu
Version 2.8.2.6
Comparing to
See all releases

Code changes from version 2.8.2.5 to 2.8.2.6

includes/class-wp-mobile-menu-core.php CHANGED
@@ -328,7 +328,7 @@ class WP_Mobile_Menu_Core
328
  );
329
  }
330
 
331
- if ( !$plugin_settings->getOption( 'disabled_logo_text' ) && !$plugin_settings->getOption( 'enabled_naked_header' ) ) {
332
  // Format the Header Branding.
333
  $this->logo_content = $this->format_header_branding( $plugin_settings, $header_text );
334
  }
328
  );
329
  }
330
 
331
+ if ( !$plugin_settings->getOption( 'disabled_logo_text' ) ) {
332
  // Format the Header Branding.
333
  $this->logo_content = $this->format_header_branding( $plugin_settings, $header_text );
334
  }
includes/js/mobmenu-admin.js CHANGED
@@ -268,7 +268,6 @@
268
 
269
  if ( $( "[data-link-id='header-options']" ).hasClass('active') ) {
270
  if ( $( '#mobmenu_enabled_naked_header' ).parent().find( '.button-primary' ).text() == 'Hamburger Menu' ) {
271
- $( '.mobmenu_disabled_logo_text' ).hide();
272
  $( '.mobmenu_header_shadow' ).hide();
273
  $( '.mobmenu_header_text' ).hide();
274
  $( '.mobmenu_header_height' ).hide();
@@ -278,7 +277,6 @@
278
  $( '.mobmenu_header_text_logo_spacing' ).hide();
279
  $( '.mobmenu_header_text_right_margin' ).hide();
280
  } else {
281
- $( '.mobmenu_disabled_logo_text' ).show();
282
  $( '.mobmenu_header_shadow' ).show();
283
  $( '.mobmenu_header_text' ).show();
284
  $( '.mobmenu_header_height' ).show();
268
 
269
  if ( $( "[data-link-id='header-options']" ).hasClass('active') ) {
270
  if ( $( '#mobmenu_enabled_naked_header' ).parent().find( '.button-primary' ).text() == 'Hamburger Menu' ) {
 
271
  $( '.mobmenu_header_shadow' ).hide();
272
  $( '.mobmenu_header_text' ).hide();
273
  $( '.mobmenu_header_height' ).hide();
277
  $( '.mobmenu_header_text_logo_spacing' ).hide();
278
  $( '.mobmenu_header_text_right_margin' ).hide();
279
  } else {
 
280
  $( '.mobmenu_header_shadow' ).show();
281
  $( '.mobmenu_header_text' ).show();
282
  $( '.mobmenu_header_height' ).show();
includes/plugin-settings/lib/class-admin-page.php CHANGED
@@ -298,7 +298,7 @@ class MobileMenuAdminPage
298
  ?></h2>-->
299
  <div class="mobile-menu-logo">
300
  <img src="<?php
301
- echo WP_MOBILE_MENU_PLUGIN_URL . 'includes/assets/logo_mobile_menu.png' ;
302
  ?>">
303
  </div>
304
  <div class='mm-panel-search-bar'>
@@ -319,7 +319,7 @@ class MobileMenuAdminPage
319
  </div>
320
  <div class="mm-doc-icon"><a href="https://www.wpmobilemenu.com/knowledgebase/?utm_source=plugin-settings&utm_medium=user%20website&utm_campaign=documentation-link" target="_blank"><i class="dashicons-before dashicons-admin-page"></i><span>Documentation</span></a></div>
321
  <div class="mm-support-icon">
322
- <a href="#">
323
  <i class="dashicons dashicons-admin-users "></i>
324
  <span><?php
325
  _e( "Support", 'mobile-menu' );
298
  ?></h2>-->
299
  <div class="mobile-menu-logo">
300
  <img src="<?php
301
+ echo WP_MOBILE_MENU_PLUGIN_URL . 'includes/assets/logo-mobile-menu.png' ;
302
  ?>">
303
  </div>
304
  <div class='mm-panel-search-bar'>
319
  </div>
320
  <div class="mm-doc-icon"><a href="https://www.wpmobilemenu.com/knowledgebase/?utm_source=plugin-settings&utm_medium=user%20website&utm_campaign=documentation-link" target="_blank"><i class="dashicons-before dashicons-admin-page"></i><span>Documentation</span></a></div>
321
  <div class="mm-support-icon">
322
+ <a href="https://www.wpmobilemenu.com/contact-us/?utm_source=plugin-settings&utm_medium=user%20website&utm_campaign=support-link">
323
  <i class="dashicons dashicons-admin-users "></i>
324
  <span><?php
325
  _e( "Support", 'mobile-menu' );
mobmenu.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: Mobile Menu
5
  * Description: An easy to use WordPress responsive mobile menu. Keep your mobile visitors engaged.
6
- * Version: 2.8.2.5
7
  * Plugin URI: https://www.wpmobilemenu.com/
8
  * Author: Freshlight Lab
9
  * Author URI: https://www.freshlightlab.com/
@@ -16,7 +16,7 @@
16
  if ( !defined( 'ABSPATH' ) ) {
17
  die;
18
  }
19
- define( 'WP_MOBILE_MENU_VERSION', '2.8.2.5' );
20
  define( 'WP_MOBILE_MENU_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
21
  define( 'WP_MOBILE_MENU_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
22
  if ( !class_exists( 'WP_Mobile_Menu' ) ) {
@@ -171,7 +171,7 @@ if ( !class_exists( 'WP_Mobile_Menu' ) ) {
171
 
172
  if ( $mobmenu_action == 'find-element' || $is_testing_mode && current_user_can( 'administrator' ) || !$is_testing_mode && (!$is_mobile_only || $is_mobile_only && wp_is_mobile()) ) {
173
  // Enqueue Html to the Footer.
174
- add_action( 'wp_body_open', array( $this->mobmenu_core, 'load_menu_html_markup' ) );
175
  // Frontend Scripts.
176
  add_action( 'wp_enqueue_scripts', array( $this->mobmenu_core, 'frontend_enqueue_scripts' ), 100 );
177
  // Add menu display type class to the body.
3
  /**
4
  * Plugin Name: Mobile Menu
5
  * Description: An easy to use WordPress responsive mobile menu. Keep your mobile visitors engaged.
6
+ * Version: 2.8.2.6
7
  * Plugin URI: https://www.wpmobilemenu.com/
8
  * Author: Freshlight Lab
9
  * Author URI: https://www.freshlightlab.com/
16
  if ( !defined( 'ABSPATH' ) ) {
17
  die;
18
  }
19
+ define( 'WP_MOBILE_MENU_VERSION', '2.8.2.6' );
20
  define( 'WP_MOBILE_MENU_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
21
  define( 'WP_MOBILE_MENU_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
22
  if ( !class_exists( 'WP_Mobile_Menu' ) ) {
171
 
172
  if ( $mobmenu_action == 'find-element' || $is_testing_mode && current_user_can( 'administrator' ) || !$is_testing_mode && (!$is_mobile_only || $is_mobile_only && wp_is_mobile()) ) {
173
  // Enqueue Html to the Footer.
174
+ add_action( 'wp_footer', array( $this->mobmenu_core, 'load_menu_html_markup' ) );
175
  // Frontend Scripts.
176
  add_action( 'wp_enqueue_scripts', array( $this->mobmenu_core, 'frontend_enqueue_scripts' ), 100 );
177
  // Add menu display type class to the body.
readme.txt CHANGED
@@ -4,7 +4,7 @@ link: http://profiles.wordpress.org/takanakui
4
  Tags: mobile, navigation, responsive, menu, responsive menu, mobile menu, tablet menu, hamburger menu, hamburger, wordpress responsive menu, wordpress mobile menu, canvas menu
5
  Requires at least: 4.4
6
  Tested up to: 5.9
7
- Stable tag: 2.8.2.5
8
  Requires PHP: 5.6
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -136,6 +136,10 @@ Not available at the moment
136
 
137
 
138
 
 
 
 
 
139
  = 2.8.2.5 =
140
  * New! - Proof of concept new Elementor widget for the Let Menu button
141
  * New! - Logo is now translated with WPML to use different mobile header logos per language
4
  Tags: mobile, navigation, responsive, menu, responsive menu, mobile menu, tablet menu, hamburger menu, hamburger, wordpress responsive menu, wordpress mobile menu, canvas menu
5
  Requires at least: 4.4
6
  Tested up to: 5.9
7
+ Stable tag: 2.8.2.6
8
  Requires PHP: 5.6
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
136
 
137
 
138
 
139
+ = 2.8.2.6 =
140
+ * Fix! - Revert the HTML of the Mobile Menu to the wp_footer hook instead wp_open_body because there are still many themes not following the guidelines
141
+ * Fix! - Logo was disappearing in Naked Header mode
142
+
143
  = 2.8.2.5 =
144
  * New! - Proof of concept new Elementor widget for the Let Menu button
145
  * New! - Logo is now translated with WPML to use different mobile header logos per language