Admin Menu Editor - Version 1.8.7

Version Description

  • Fixed a bug introcuded in 1.8.6 that caused a PHP warning "strpos(): Empty needle".
Download this release

Release Info

Developer whiteshadow
Plugin Icon 128x128 Admin Menu Editor
Version 1.8.7
Comparing to
See all releases

Code changes from version 1.8.6 to 1.8.7

includes/shadow_plugin_framework.php CHANGED
@@ -314,15 +314,15 @@ class MenuEd_ShadowPluginFramework {
314
  $filename = $this->plugin_file;
315
  }
316
 
317
- $muPluginDir = realpath(WPMU_PLUGIN_DIR);
318
- $filename = realpath($filename);
319
 
320
  //If realpath() fails, just normalize the syntax instead.
321
- if ( empty($muPluginDir) || empty($filename) ) {
322
- $muPluginDir = wp_normalize_path($muPluginDir);
323
- $filename = wp_normalize_path($filename);
324
  }
325
- return (strpos( $filename, $muPluginDir ) !== false);
326
  }
327
 
328
  /**
314
  $filename = $this->plugin_file;
315
  }
316
 
317
+ $normalizedMuPluginDir = realpath(WPMU_PLUGIN_DIR);
318
+ $normalizedFileName = realpath($filename);
319
 
320
  //If realpath() fails, just normalize the syntax instead.
321
+ if ( empty($normalizedFileName) || empty($normalizedFileName) ) {
322
+ $normalizedMuPluginDir = wp_normalize_path(WPMU_PLUGIN_DIR);
323
+ $normalizedFileName = wp_normalize_path($filename);
324
  }
325
+ return (strpos( $normalizedFileName, $normalizedMuPluginDir ) !== false);
326
  }
327
 
328
  /**
menu-editor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Admin Menu Editor
4
  Plugin URI: http://w-shadow.com/blog/2008/12/20/admin-menu-editor-for-wordpress/
5
  Description: Lets you directly edit the WordPress admin menu. You can re-order, hide or rename existing menus, add custom menus and more.
6
- Version: 1.8.6
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/blog/
9
  */
3
  Plugin Name: Admin Menu Editor
4
  Plugin URI: http://w-shadow.com/blog/2008/12/20/admin-menu-editor-for-wordpress/
5
  Description: Lets you directly edit the WordPress admin menu. You can re-order, hide or rename existing menus, add custom menus and more.
6
+ Version: 1.8.7
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/blog/
9
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: admin, dashboard, menu, security, wpmu
5
  Requires at least: 4.1
6
  Tested up to: 5.0
7
- Stable tag: 1.8.6
8
 
9
  Lets you edit the WordPress admin menu. You can re-order, hide or rename menus, add custom menus and more.
10
 
@@ -63,6 +63,9 @@ Plugins installed in the `mu-plugins` directory are treated as "always on", so y
63
 
64
  == Changelog ==
65
 
 
 
 
66
  = 1.8.6 =
67
  * Fixed a PHP warning being thrown when the WPMU_PLUGIN_DIR constant is not a valid path or the full path cannot be determined.
68
  * Fixed a rare PHP warning "parameter 1 to be array, null given in menu-editor-core.php on line 4254" that was most likely caused by an unidentified plugin conflict.
4
  Tags: admin, dashboard, menu, security, wpmu
5
  Requires at least: 4.1
6
  Tested up to: 5.0
7
+ Stable tag: 1.8.7
8
 
9
  Lets you edit the WordPress admin menu. You can re-order, hide or rename menus, add custom menus and more.
10
 
63
 
64
  == Changelog ==
65
 
66
+ = 1.8.7 =
67
+ * Fixed a bug introcuded in 1.8.6 that caused a PHP warning "strpos(): Empty needle".
68
+
69
  = 1.8.6 =
70
  * Fixed a PHP warning being thrown when the WPMU_PLUGIN_DIR constant is not a valid path or the full path cannot be determined.
71
  * Fixed a rare PHP warning "parameter 1 to be array, null given in menu-editor-core.php on line 4254" that was most likely caused by an unidentified plugin conflict.