Version Description
- Fixed a warning about get_magic_quotes_gpc() being deprecated in PHP 7.4.
- Fixed a conflict with plugins that use the "all_plugins" filter incorrectly.
Download this release
Release Info
Developer | whiteshadow |
Plugin | Admin Menu Editor |
Version | 1.9.3 |
Comparing to | |
See all releases |
Code changes from version 1.9.2 to 1.9.3
- images/font-awesome/undo.png +0 -0
- images/reset-permissions.png +0 -0
- includes/menu-editor-core.php +6 -2
- menu-editor.php +1 -1
- modules/plugin-visibility/plugin-visibility.php +4 -0
- readme.txt +5 -1
images/font-awesome/undo.png
ADDED
Binary file
|
images/reset-permissions.png
ADDED
Binary file
|
includes/menu-editor-core.php
CHANGED
@@ -1689,6 +1689,7 @@ class WPMenuEditor extends MenuEd_ShadowPluginFramework {
|
|
1689 |
//Move orphaned items back to their original parents.
|
1690 |
foreach($orphans as $item) {
|
1691 |
$defaultParent = $item['defaults']['parent'];
|
|
|
1692 |
if ( isset($defaultParent) && isset($tree[$defaultParent]) ) {
|
1693 |
$tree[$defaultParent]['items'][] = $item;
|
1694 |
} else {
|
@@ -3450,8 +3451,11 @@ class WPMenuEditor extends MenuEd_ShadowPluginFramework {
|
|
3450 |
$this->post = $this->originalPost = $_POST;
|
3451 |
$this->get = $_GET;
|
3452 |
|
3453 |
-
|
3454 |
-
|
|
|
|
|
|
|
3455 |
$this->post = stripslashes_deep($this->post);
|
3456 |
$this->get = stripslashes_deep($this->get);
|
3457 |
}
|
1689 |
//Move orphaned items back to their original parents.
|
1690 |
foreach($orphans as $item) {
|
1691 |
$defaultParent = $item['defaults']['parent'];
|
1692 |
+
//TODO: Apparently 'parent' might not exist in some configurations. Unknown bug.
|
1693 |
if ( isset($defaultParent) && isset($tree[$defaultParent]) ) {
|
1694 |
$tree[$defaultParent]['items'][] = $item;
|
1695 |
} else {
|
3451 |
$this->post = $this->originalPost = $_POST;
|
3452 |
$this->get = $_GET;
|
3453 |
|
3454 |
+
if (
|
3455 |
+
version_compare(phpversion(), '7.4.0alpha1', '<')
|
3456 |
+
&& function_exists('get_magic_quotes_gpc')
|
3457 |
+
&& get_magic_quotes_gpc()
|
3458 |
+
) {
|
3459 |
$this->post = stripslashes_deep($this->post);
|
3460 |
$this->get = stripslashes_deep($this->get);
|
3461 |
}
|
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.9.
|
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.9.3
|
7 |
Author: Janis Elsts
|
8 |
Author URI: http://w-shadow.com/blog/
|
9 |
*/
|
modules/plugin-visibility/plugin-visibility.php
CHANGED
@@ -154,6 +154,10 @@ class amePluginVisibility extends amePersistentModule {
|
|
154 |
* @return array
|
155 |
*/
|
156 |
public function filterPluginList($plugins) {
|
|
|
|
|
|
|
|
|
157 |
$user = wp_get_current_user();
|
158 |
$settings = $this->loadSettings();
|
159 |
|
154 |
* @return array
|
155 |
*/
|
156 |
public function filterPluginList($plugins) {
|
157 |
+
if ( !is_array($plugins) && !($plugins instanceof ArrayAccess) ) {
|
158 |
+
return $plugins;
|
159 |
+
}
|
160 |
+
|
161 |
$user = wp_get_current_user();
|
162 |
$settings = $this->loadSettings();
|
163 |
|
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.3
|
7 |
-
Stable tag: 1.9.
|
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,10 @@ Plugins installed in the `mu-plugins` directory are treated as "always on", so y
|
|
63 |
|
64 |
== Changelog ==
|
65 |
|
|
|
|
|
|
|
|
|
66 |
= 1.9.2 =
|
67 |
* Updated the appearance of the settings page to match the admin CSS changes introduced in WordPress 5.3.
|
68 |
* Fixed inconsistent dialog title bar colours that could occur when another plugin loaded the default WP dialog styles.
|
4 |
Tags: admin, dashboard, menu, security, wpmu
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 1.9.3
|
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.9.3 =
|
67 |
+
* Fixed a warning about get_magic_quotes_gpc() being deprecated in PHP 7.4.
|
68 |
+
* Fixed a conflict with plugins that use the "all_plugins" filter incorrectly.
|
69 |
+
|
70 |
= 1.9.2 =
|
71 |
* Updated the appearance of the settings page to match the admin CSS changes introduced in WordPress 5.3.
|
72 |
* Fixed inconsistent dialog title bar colours that could occur when another plugin loaded the default WP dialog styles.
|