Version Description
- Fixed a bug introduced in version 1.6 that prevented the "collapse menu" link from working. In some cases, this bug also made it impossible to switch between "Help" tabs.
Download this release
Release Info
Developer | whiteshadow |
Plugin | Admin Menu Editor |
Version | 1.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.6 to 1.6.1
- includes/menu-editor-core.php +12 -3
- js/admin-helpers.js +0 -9
- js/editor-tab-fix.js +11 -0
- menu-editor.php +1 -1
- readme.txt +4 -1
includes/menu-editor-core.php
CHANGED
@@ -613,6 +613,15 @@ class WPMenuEditor extends MenuEd_ShadowPluginFramework {
|
|
613 |
//Lodash library
|
614 |
wp_register_auto_versioned_script('ame-lodash', plugins_url('js/lodash.min.js', $this->plugin_file));
|
615 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
616 |
//Actor manager.
|
617 |
wp_register_auto_versioned_script(
|
618 |
'ame-actor-manager',
|
@@ -741,7 +750,7 @@ class WPMenuEditor extends MenuEd_ShadowPluginFramework {
|
|
741 |
'dashiconsAvailable' => wp_style_is('dashicons', 'registered'),
|
742 |
'captionShowAdvanced' => 'Show advanced options',
|
743 |
'captionHideAdvanced' => 'Hide advanced options',
|
744 |
-
'wsMenuEditorPro' =>
|
745 |
'menuFormatName' => ameMenu::format_name,
|
746 |
'menuFormatVersion' => ameMenu::format_version,
|
747 |
|
@@ -2688,8 +2697,8 @@ class WPMenuEditor extends MenuEd_ShadowPluginFramework {
|
|
2688 |
wp_enqueue_script(
|
2689 |
'ame-helper-script',
|
2690 |
plugins_url('js/admin-helpers.js', $this->plugin_file),
|
2691 |
-
array('jquery'
|
2692 |
-
'
|
2693 |
);
|
2694 |
|
2695 |
//The helper script needs to know the custom page heading (if any) to apply it.
|
613 |
//Lodash library
|
614 |
wp_register_auto_versioned_script('ame-lodash', plugins_url('js/lodash.min.js', $this->plugin_file));
|
615 |
|
616 |
+
//Move admin notices (e.g. "Settings saved") below editor tabs.
|
617 |
+
//This is a separate script because it has to run after common.js which is loaded in the page footer.
|
618 |
+
wp_enqueue_auto_versioned_script(
|
619 |
+
'ame-editor-tab-fix',
|
620 |
+
plugins_url('js/editor-tab-fix.js', $this->plugin_file),
|
621 |
+
array('jquery', 'common'),
|
622 |
+
true
|
623 |
+
);
|
624 |
+
|
625 |
//Actor manager.
|
626 |
wp_register_auto_versioned_script(
|
627 |
'ame-actor-manager',
|
750 |
'dashiconsAvailable' => wp_style_is('dashicons', 'registered'),
|
751 |
'captionShowAdvanced' => 'Show advanced options',
|
752 |
'captionHideAdvanced' => 'Hide advanced options',
|
753 |
+
'wsMenuEditorPro' => $this->is_pro_version(), //Will be overwritten if extras are loaded
|
754 |
'menuFormatName' => ameMenu::format_name,
|
755 |
'menuFormatVersion' => ameMenu::format_version,
|
756 |
|
2697 |
wp_enqueue_script(
|
2698 |
'ame-helper-script',
|
2699 |
plugins_url('js/admin-helpers.js', $this->plugin_file),
|
2700 |
+
array('jquery'),
|
2701 |
+
'20160407-2'
|
2702 |
);
|
2703 |
|
2704 |
//The helper script needs to know the custom page heading (if any) to apply it.
|
js/admin-helpers.js
CHANGED
@@ -72,15 +72,6 @@
|
|
72 |
replaceAdminPageHeading(customPageHeading + '\t');
|
73 |
ameHideHeading.remove(); //Make the heading visible.
|
74 |
}
|
75 |
-
|
76 |
-
//On AME pages, move settings tabs after the heading. This is necessary to make them appear on the right side,
|
77 |
-
//and WordPress breaks that by moving notices like "Settings saved" after the first H1 (see common.js).
|
78 |
-
var menuEditorHeading = $('#ws_ame_editor_heading').first(),
|
79 |
-
menuEditorTabs = $('.nav-tab-wrapper').first();
|
80 |
-
menuEditorTabs = menuEditorTabs.add(menuEditorTabs.next('.clear'));
|
81 |
-
if ((menuEditorHeading.length > 0) && (menuEditorTabs.length > 0)) {
|
82 |
-
menuEditorTabs.insertAfter(menuEditorHeading);
|
83 |
-
}
|
84 |
});
|
85 |
|
86 |
})(jQuery);
|
72 |
replaceAdminPageHeading(customPageHeading + '\t');
|
73 |
ameHideHeading.remove(); //Make the heading visible.
|
74 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
});
|
76 |
|
77 |
})(jQuery);
|
js/editor-tab-fix.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(function($) {
|
2 |
+
//On AME pages, move settings tabs after the heading. This is necessary to make them appear on the right side,
|
3 |
+
//and WordPress breaks that by moving notices like "Settings saved" after the first H1 (see common.js).
|
4 |
+
var menuEditorHeading = $('#ws_ame_editor_heading').first(),
|
5 |
+
menuEditorTabs = $('.nav-tab-wrapper').first();
|
6 |
+
menuEditorTabs = menuEditorTabs.add(menuEditorTabs.next('.clear'));
|
7 |
+
if ((menuEditorHeading.length > 0) && (menuEditorTabs.length > 0)) {
|
8 |
+
menuEditorTabs.insertAfter(menuEditorHeading);
|
9 |
+
}
|
10 |
+
});
|
11 |
+
|
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.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.6.1
|
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: 4.5
|
7 |
-
Stable tag: 1.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.6 =
|
67 |
* Improved PHP 7 support.
|
68 |
* Added a few more menu icons.
|
4 |
Tags: admin, dashboard, menu, security, wpmu
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.6.1
|
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.6.1 =
|
67 |
+
* Fixed a bug introduced in version 1.6 that prevented the "collapse menu" link from working. In some cases, this bug also made it impossible to switch between "Help" tabs.
|
68 |
+
|
69 |
= 1.6 =
|
70 |
* Improved PHP 7 support.
|
71 |
* Added a few more menu icons.
|