Admin Menu Editor - Version 1.1.2

Version Description

  • Fixed a "failed to decode input" error that could show up when saving the menu.
Download this release

Release Info

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

Code changes from version 1.1.1 to 1.1.2

Files changed (3) hide show
  1. includes/menu-editor-core.php +1 -2
  2. menu-editor.php +1 -1
  3. readme.txt +4 -1
includes/menu-editor-core.php CHANGED
@@ -848,13 +848,12 @@ class WPMenuEditor extends MenuEd_ShadowPluginFramework {
848
 
849
  //Try to decode a menu tree encoded as JSON
850
  $data = $this->json_decode($post['data'], true);
851
- if (!$data || count(($data) < 2) ){
852
  $fixed = stripslashes($post['data']);
853
  $data = $this->json_decode( $fixed, true );
854
  }
855
 
856
  $url = remove_query_arg('noheader');
857
-
858
  if ($data){
859
  //Ensure the user doesn't change the required capability to something they themselves don't have.
860
  if ( isset($data['options-general.php']['items']['menu_editor']) ){
848
 
849
  //Try to decode a menu tree encoded as JSON
850
  $data = $this->json_decode($post['data'], true);
851
+ if (!$data || (count($data) < 2) ){
852
  $fixed = stripslashes($post['data']);
853
  $data = $this->json_decode( $fixed, true );
854
  }
855
 
856
  $url = remove_query_arg('noheader');
 
857
  if ($data){
858
  //Ensure the user doesn't change the required capability to something they themselves don't have.
859
  if ( isset($data['options-general.php']['items']['menu_editor']) ){
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.1.1
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.1.2
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: 3.0
6
  Tested up to: 3.1.3
7
- Stable tag: 1.1.1
8
 
9
  Lets you directly edit the WordPress admin menu. You can re-order, hide or rename existing menus, add custom menus and more.
10
 
@@ -61,6 +61,9 @@ Plugins installed in the `mu-plugins` directory are treated as "always on", so y
61
 
62
  == Changelog ==
63
 
 
 
 
64
  = 1.1.1 =
65
  * WordPress 3.1.3 compatibility. Should also be compatible with the upcoming 3.2.
66
  * Fixed spurious slashes sometimes showing up in menus.
4
  Tags: admin, dashboard, menu, security, wpmu
5
  Requires at least: 3.0
6
  Tested up to: 3.1.3
7
+ Stable tag: 1.1.2
8
 
9
  Lets you directly edit the WordPress admin menu. You can re-order, hide or rename existing menus, add custom menus and more.
10
 
61
 
62
  == Changelog ==
63
 
64
+ = 1.1.2 =
65
+ * Fixed a "failed to decode input" error that could show up when saving the menu.
66
+
67
  = 1.1.1 =
68
  * WordPress 3.1.3 compatibility. Should also be compatible with the upcoming 3.2.
69
  * Fixed spurious slashes sometimes showing up in menus.