Admin Menu Editor - Version 1.1.6.1

Version Description

  • Tested on WP 3.3.2
  • Added a user survey.
Download this release

Release Info

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

Code changes from version 1.1.6 to 1.1.6.1

Files changed (3) hide show
  1. includes/menu-editor-core.php +22 -1
  2. menu-editor.php +1 -1
  3. readme.txt +6 -2
includes/menu-editor-core.php CHANGED
@@ -41,6 +41,7 @@ class WPMenuEditor extends MenuEd_ShadowPluginFramework {
41
  $this->defaults = array(
42
  'hide_advanced_settings' => true,
43
  'menu_format_version' => 0,
 
44
  );
45
  $this->serialize_with_json = false; //(Don't) store the options in JSON format
46
 
@@ -913,6 +914,26 @@ class WPMenuEditor extends MenuEd_ShadowPluginFramework {
913
  if ( !apply_filters('admin_menu_editor_is_pro', false) ){
914
  $this->print_upgrade_notice();
915
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
916
  ?>
917
  <div class="wrap">
918
  <h2>
@@ -1218,7 +1239,7 @@ window.wsMenuEditorPro = false; //Will be overwritten if extras are loaded
1218
  (function($){
1219
  $('#screen-meta-links').append(
1220
  '<div id="ws-pro-version-notice">' +
1221
- '<a href="http://w-shadow.com/AdminMenuEditor/" id="ws-pro-version-notice-link" class="show-settings" target="_blank" title="View Pro version details">Upgrade to Pro</a>' +
1222
  '</div>'
1223
  );
1224
  })(jQuery);
41
  $this->defaults = array(
42
  'hide_advanced_settings' => true,
43
  'menu_format_version' => 0,
44
+ 'display_survey_notice' => true,
45
  );
46
  $this->serialize_with_json = false; //(Don't) store the options in JSON format
47
 
914
  if ( !apply_filters('admin_menu_editor_is_pro', false) ){
915
  $this->print_upgrade_notice();
916
  }
917
+
918
+ //Handle the survey notice
919
+ if ( isset($_GET['hide_survey_notice']) && !empty($_GET['hide_survey_notice']) ) {
920
+ $this->options['display_survey_notice'] = false;
921
+ $this->save_options();
922
+ }
923
+
924
+ if ( $this->options['display_survey_notice'] ) {
925
+ $survey_url = 'https://docs.google.com/spreadsheet/viewform?formkey=dDVLOFM4V0JodUVTbWdUMkJtb2ZtZGc6MQ';
926
+ $hide_url = add_query_arg('hide_survey_notice', 1);
927
+ printf(
928
+ '<div class="updated">
929
+ <p><strong>Help improve this plugin - take the Admin Menu Editor user survey!</strong></p>
930
+ <p><a href="%s" target="_blank" title="Opens in a new window">Take the survey</a></p>
931
+ <p><a href="%s">Hide this notice</a></p>
932
+ </div>',
933
+ esc_attr($survey_url),
934
+ esc_attr($hide_url)
935
+ );
936
+ }
937
  ?>
938
  <div class="wrap">
939
  <h2>
1239
  (function($){
1240
  $('#screen-meta-links').append(
1241
  '<div id="ws-pro-version-notice">' +
1242
+ '<a href="http://w-shadow.com/admin-menu-editor-pro/?utm_source=Admin%2BMenu%2BEditor%2Bfree&utm_medium=text_link&utm_content=top_upgrade_link&utm_campaign=Plugins" id="ws-pro-version-notice-link" class="show-settings" target="_blank" title="View Pro version details">Upgrade to Pro</a>' +
1243
  '</div>'
1244
  );
1245
  })(jQuery);
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.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.1.6.1
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/blog/
9
  */
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: whiteshadow
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A6P9S6CE3SRSW
4
  Tags: admin, dashboard, menu, security, wpmu
5
  Requires at least: 3.0
6
- Tested up to: 3.3.1
7
- Stable tag: 1.1.6
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,10 @@ Plugins installed in the `mu-plugins` directory are treated as "always on", so y
61
 
62
  == Changelog ==
63
 
 
 
 
 
64
  = 1.1.6 =
65
  * Tested on WP 3.3.1.
66
  * Fixed a couple 404's in the readme and the plugin itself.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A6P9S6CE3SRSW
4
  Tags: admin, dashboard, menu, security, wpmu
5
  Requires at least: 3.0
6
+ Tested up to: 3.3.2
7
+ Stable tag: 1.1.6.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
 
62
  == Changelog ==
63
 
64
+ = 1.1.6.1 =
65
+ * Tested on WP 3.3.2
66
+ * Added a user survey.
67
+
68
  = 1.1.6 =
69
  * Tested on WP 3.3.1.
70
  * Fixed a couple 404's in the readme and the plugin itself.