PluginProbe
Responsive Menu – Mobile Menu & Hamburger Menu Builder / 4.7.4
Responsive Menu – Mobile Menu & Hamburger Menu Builder v4.7.4
4.7.4 4.7.3 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.10 4.1.11 4.1.12 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 All 91 releases
← All changes | responsive-menu.php +20 -8 4.1.9 → 4.7.4 View file →
@@ -3,9 +3,9 @@
3 3 /*
4 4 Plugin Name: Responsive Menu
5 5 Plugin URI: https://expresstech.io
6 6 Description: Highly Customisable Responsive Menu Plugin for WordPress
7 -Version: 4.1.9
7 +Version: 4.7.4
8 8 Author: ExpressTech
9 9 Text Domain: responsive-menu
10 10 Author URI: https://responsive.menu
11 11 License: GPL2
@@ -15,16 +15,25 @@
15 15 /**
16 16 * Constant as plugin version.
17 17 */
18 18 if ( ! defined( 'RMP_PLUGIN_VERSION' ) ) {
19 - define( 'RMP_PLUGIN_VERSION', '4.1.9' );
19 + define( 'RMP_PLUGIN_VERSION', '4.7.4' );
20 20 }
21 21
22 22 define( 'RESPONSIVE_MENU_URL', plugin_dir_url( __FILE__ ) );
23 23
24 +/**
25 + * Minimum PHP version. The bundled scssphp library uses nullable type
26 + * declarations (`?Type $arg = null`), which are a parse error before PHP 7.1.
27 + * Keep this in sync with `Requires PHP` in readme.txt.
28 + */
29 +if ( ! defined( 'RMP_MINIMUM_PHP_VERSION' ) ) {
30 + define( 'RMP_MINIMUM_PHP_VERSION', '7.1' );
31 +}
32 +
24 33 add_action( 'admin_init', 'check_responsive_menu_php_version' );
25 34 function check_responsive_menu_php_version() {
26 - if ( version_compare( PHP_VERSION, '5.4', '<' ) ) :
35 + if ( version_compare( PHP_VERSION, RMP_MINIMUM_PHP_VERSION, '<' ) ) :
27 36 add_action( 'admin_notices', 'responsive_menu_deactivation_text' );
28 37 deactivate_plugins( plugin_basename( __FILE__ ) );
29 38 endif;
30 39 }
@@ -30,16 +39,17 @@
30 39 }
31 40
32 41 function responsive_menu_deactivation_text() {
33 42 echo '<div class="' . esc_attr( 'error' ) . '"><p>' . sprintf(
34 - 'Responsive Menu requires PHP 5.4 or higher to function and has therefore been automatically disabled.
35 - You are still on %s.%sPlease speak to your web host about upgrading your PHP version.',
43 + 'Responsive Menu requires PHP %1$s or higher to function and has therefore been automatically disabled.
44 + You are still on %2$s.%3$sPlease speak to your web host about upgrading your PHP version.',
45 + esc_html( RMP_MINIMUM_PHP_VERSION ),
36 46 PHP_VERSION,
37 47 '<br /><br />'
38 48 ) . '</p></div>';
39 49 }
40 50
41 -if ( version_compare( PHP_VERSION, '5.4', '<' ) ) {
51 +if ( version_compare( PHP_VERSION, RMP_MINIMUM_PHP_VERSION, '<' ) ) {
42 52 return;
43 53 }
44 54
45 55 // If this file called directly then abort.
@@ -139,8 +149,11 @@
139 149 deactivate_plugins( $plugin );
140 150 set_transient( 'og-admin-notice-activation-pro', true, 5 );
141 151 }
142 152
153 + // Keep the plugin's uploads directory from serving anything executable.
154 + \RMP\Features\Inc\Theme_Manager::get_instance()->protect_upload_dir();
155 +
143 156 flush_rewrite_rules();
144 157 }
145 158
146 159 /**
@@ -183,6 +196,5 @@
183 196 }
184 197
185 198 rm_includes_menu_theme_template();
186 199
187 -
188 -require 'review-banner-class.php';
200 +require_once 'review-banner-class.php';