Responsive Menu - Version 4.1.1

Version Description

(19th April 2021) = Bug: Fixed responsive menu elementor widget issue with PHP version 7.2 and older

Download this release

Release Info

Developer expresstech
Plugin Icon 128x128 Responsive Menu
Version 4.1.1
Comparing to
See all releases

Code changes from version 4.1.0 to 4.1.1

readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: expresstech,responsivemenu,imvarunkmr,surajkumarsingh
3
  Tags: responsive, mega menu, navigation, mobile, hamburger
4
  Requires at least: 3.6
5
  Tested up to: 5.7
6
- Stable tag: 4.1.0
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -102,6 +102,9 @@ To view our FAQ, please go to [https://responsive.menu/faq/](https://responsive.
102
  7. Main menu
103
 
104
  == Changelog ==
 
 
 
105
  = 4.1.0 (26th February 2021) =
106
  Feature: Bundled all free themes in plugin
107
  Feature: Added new option for font weight and font family for menu title
3
  Tags: responsive, mega menu, navigation, mobile, hamburger
4
  Requires at least: 3.6
5
  Tested up to: 5.7
6
+ Stable tag: 4.1.1
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
102
  7. Main menu
103
 
104
  == Changelog ==
105
+ = 4.1.1 (19th April 2021) =
106
+ Bug: Fixed responsive menu elementor widget issue with PHP version 7.2 and older
107
+
108
  = 4.1.0 (26th February 2021) =
109
  Feature: Bundled all free themes in plugin
110
  Feature: Added new option for font weight and font family for menu title
responsive-menu.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Responsive Menu
5
  Plugin URI: https://expresstech.io
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
- Version: 4.1.0
8
  Author: ExpressTech
9
  Text Domain: responsive-menu
10
  Author URI: https://responsive.menu
@@ -16,7 +16,7 @@ Tags: responsive, menu, responsive menu, mega menu, max mega menu, max menu
16
  * Constant as plugin version.
17
  */
18
  if ( ! defined( 'RMP_PLUGIN_VERSION' ) ) {
19
- define( 'RMP_PLUGIN_VERSION', '4.1.0' );
20
  }
21
 
22
  define('RESPONSIVE_MENU_URL', plugin_dir_url( __FILE__ ) );
4
  Plugin Name: Responsive Menu
5
  Plugin URI: https://expresstech.io
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
+ Version: 4.1.1
8
  Author: ExpressTech
9
  Text Domain: responsive-menu
10
  Author URI: https://responsive.menu
16
  * Constant as plugin version.
17
  */
18
  if ( ! defined( 'RMP_PLUGIN_VERSION' ) ) {
19
+ define( 'RMP_PLUGIN_VERSION', '4.1.1' );
20
  }
21
 
22
  define('RESPONSIVE_MENU_URL', plugin_dir_url( __FILE__ ) );
v4.0.0/inc/classes/elementor/widgets/class-rmp-widget.php CHANGED
@@ -103,7 +103,13 @@ class RMP_Widget extends Widget_Base {
103
 
104
  if ( ! empty( $menus ) ) {
105
 
106
- $menu_id = array_key_first( $menus );
 
 
 
 
 
 
107
  $this->add_control(
108
  'rmp_menu',
109
  [
103
 
104
  if ( ! empty( $menus ) ) {
105
 
106
+ $menu_id = null;
107
+ if ( function_exists( 'array_key_first' ) ) {
108
+ $menu_id = array_key_first( $menus );
109
+ } else {
110
+ $menu_id = ! empty( $menus ) ? array_keys($menus)[0] : null;
111
+ }
112
+
113
  $this->add_control(
114
  'rmp_menu',
115
  [