Responsive Menu - Version 4.1.12

Version Description

(1st Aug 2022) = * Bug: Fixed conflict issues with conflict with Multiple Page Generator Plugin * Enhancement: Added timestamps as a version to generated CSS/JSS urls

Download this release

Release Info

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

Code changes from version 4.1.11 to 4.1.12

readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: expresstech, responsivemenu, imvarunkmr, surajkumarsingh, infosate
3
  Tags: responsive, mega menu, navigation, mobile, hamburger
4
  Requires at least: 3.6
5
  Tested up to: 6.0
6
- Stable tag: 4.1.11
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -12,7 +12,7 @@ Highly customisable Responsive Menu plugin with 150+ options. No coding knowledg
12
 
13
  == Description ==
14
 
15
- Try Demo ➡️ [Get a personal sandbox demo with Response Menu](https://instawp.io/plugins/responsive-menu)
16
 
17
  Highly customisable Responsive Menu Plugin for WordPress. With over 150 customisable options you get a combination of 22,500 options! No coding experience or knowledge is needed with an easy to use interface you can get it looking exactly as you want with minimal fuss.
18
 
@@ -120,6 +120,10 @@ To view our FAQ, please go to [https://responsive.menu/faq/](https://responsive.
120
 
121
  == Changelog ==
122
 
 
 
 
 
123
  = 4.1.11 (25th May 2022) =
124
  * Bug: Fixed conflict issues with Import Eventbrite Events plugin
125
  * Enhancement: Added rmp_nav_item_class hook to update nav item classes
3
  Tags: responsive, mega menu, navigation, mobile, hamburger
4
  Requires at least: 3.6
5
  Tested up to: 6.0
6
+ Stable tag: 4.1.12
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
13
  == Description ==
14
 
15
+ Try Demo ➡️ [Get a personal sandbox demo with Response Menu](https://app.instawp.io/dashboard?launch_slug=true&themes=twentytwentyone&plugins=responsive-menu)
16
 
17
  Highly customisable Responsive Menu Plugin for WordPress. With over 150 customisable options you get a combination of 22,500 options! No coding experience or knowledge is needed with an easy to use interface you can get it looking exactly as you want with minimal fuss.
18
 
120
 
121
  == Changelog ==
122
 
123
+ = 4.1.12 (1st Aug 2022) =
124
+ * Bug: Fixed conflict issues with conflict with Multiple Page Generator Plugin
125
+ * Enhancement: Added timestamps as a version to generated CSS/JSS urls
126
+
127
  = 4.1.11 (25th May 2022) =
128
  * Bug: Fixed conflict issues with Import Eventbrite Events plugin
129
  * Enhancement: Added rmp_nav_item_class hook to update nav item classes
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.11
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.11' );
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.12
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.12' );
20
  }
21
 
22
  define( 'RESPONSIVE_MENU_URL', plugin_dir_url( __FILE__ ) );
v4.0.0/inc/classes/class-style-manager.php CHANGED
@@ -107,7 +107,7 @@ class Style_Manager {
107
  */
108
  public function save_style_css_on_file() {
109
  global $wp_filesystem;
110
-
111
  if ( empty( $wp_filesystem ) ) {
112
  require_once ABSPATH . 'wp-admin/includes/file.php';
113
  }
@@ -152,7 +152,7 @@ class Style_Manager {
152
  // Ensure we're using the correct protocol.
153
  $file_url = str_replace( array( 'http://', 'https://' ), $protocol, $file_url );
154
 
155
- wp_enqueue_style( 'rmp-menu-styles', $file_url, false, substr( md5( filemtime( $file_path ) ), 0, 6 ) );
156
  }
157
  }
158
 
107
  */
108
  public function save_style_css_on_file() {
109
  global $wp_filesystem;
110
+ update_option('rmp_dynamic_file_version', current_time('H.i.s') );
111
  if ( empty( $wp_filesystem ) ) {
112
  require_once ABSPATH . 'wp-admin/includes/file.php';
113
  }
152
  // Ensure we're using the correct protocol.
153
  $file_url = str_replace( array( 'http://', 'https://' ), $protocol, $file_url );
154
 
155
+ wp_enqueue_style( 'rmp-menu-styles', $file_url, false, get_option('rmp_dynamic_file_version', wp_rand( 100, 1000 ) ) );
156
  }
157
  }
158
 
v4.0.0/inc/helpers/custom-functions.php CHANGED
@@ -98,16 +98,14 @@ function get_all_rmp_menu_ids() {
98
  'post_status' => 'publish',
99
  );
100
 
101
- $query = new \WP_Query( $args );
102
  $menu_ids = array();
103
 
104
- if ( $query->have_posts() ) {
105
- while ( $query->have_posts() ) {
106
- $query->the_post();
107
- $menu_ids[] = get_the_ID();
108
  }
109
-
110
- wp_reset_postdata();
111
  }
112
 
113
  return $menu_ids;
@@ -126,16 +124,14 @@ function rmp_get_all_menus() {
126
  'post_status' => 'publish',
127
  );
128
 
129
- $query = new \WP_Query( $args );
130
  $menus = array();
131
 
132
- if ( $query->have_posts() ) {
133
- while ( $query->have_posts() ) {
134
- $query->the_post();
135
- $menus[ get_the_ID() ] = get_the_title();
136
  }
137
-
138
- wp_reset_postdata();
139
  }
140
 
141
  return $menus;
98
  'post_status' => 'publish',
99
  );
100
 
101
+ $all_menus = get_posts( $args );
102
  $menu_ids = array();
103
 
104
+ if ( ! empty( $all_menus ) ) {
105
+ foreach ( $all_menus as $menu ) {
106
+ setup_postdata( $menu );
107
+ $menu_ids[] = $menu->ID;
108
  }
 
 
109
  }
110
 
111
  return $menu_ids;
124
  'post_status' => 'publish',
125
  );
126
 
127
+ $all_menus = get_posts( $args );
128
  $menus = array();
129
 
130
+ if ( ! empty( $all_menus ) ) {
131
+ foreach ( $all_menus as $menu ) {
132
+ setup_postdata( $menu );
133
+ $menus[ $menu->ID ] = $menu->post_title;
134
  }
 
 
135
  }
136
 
137
  return $menus;
v4.0.0/templates/rmp-editor.php CHANGED
@@ -2653,15 +2653,17 @@ WP_Filesystem();
2653
  'class' => 'no-updates',
2654
  'name' => 'menu[menu_width]',
2655
  'value' => rmp_get_value( $options, 'menu_width' ),
 
2656
  'group_classes' => 'full-size',
2657
  'placeholder' => esc_html__( 'Enter value', 'responsive-menu' ),
2658
  'has_unit' => array(
2659
- 'unit_type' => 'all',
2660
- 'id' => 'rmp-menu-container-width-unit',
2661
- 'name' => 'menu[menu_width_unit]',
2662
- 'default' => '%',
2663
- 'classes' => 'is-unit no-updates',
2664
- 'value' => rmp_get_value( $options, 'menu_width_unit' ),
 
2665
  ),
2666
  )
2667
  );
2653
  'class' => 'no-updates',
2654
  'name' => 'menu[menu_width]',
2655
  'value' => rmp_get_value( $options, 'menu_width' ),
2656
+ 'multi_device' => true,
2657
  'group_classes' => 'full-size',
2658
  'placeholder' => esc_html__( 'Enter value', 'responsive-menu' ),
2659
  'has_unit' => array(
2660
+ 'unit_type' => 'all',
2661
+ 'id' => 'rmp-menu-container-width-unit',
2662
+ 'name' => 'menu[menu_width_unit]',
2663
+ 'default' => '%',
2664
+ 'classes' => 'is-unit no-updates',
2665
+ 'value' => rmp_get_value( $options, 'menu_width_unit' ),
2666
+ 'multi_device' => true,
2667
  ),
2668
  )
2669
  );