Admin Menu Editor - Version 1.10.4

Version Description

  • Fixed a layout bug in the menu editor where the submenu column did not increase its height to align with the currently selected top level menu.
  • Tested up to WP 6.1.
Download this release

Release Info

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

Code changes from version 1.10.3 to 1.10.4

css/admin.css CHANGED
@@ -101,7 +101,8 @@ hr.ws-submenu-separator {
101
  text-align: center;
102
  }
103
 
104
- #adminmenu .ame-has-submenu-icons ul.wp-submenu li a {
 
105
  /* Push all submenus to the right to ensure that items with and without icons line up nicely. */
106
  padding-left: 36px;
107
  }
@@ -119,3 +120,10 @@ hr.ws-submenu-separator {
119
  opacity: 1;
120
  filter: alpha(opacity=100);
121
  }
 
 
 
 
 
 
 
101
  text-align: center;
102
  }
103
 
104
+ #adminmenu .ame-has-submenu-icons > ul.wp-submenu > li > a,
105
+ .folded #adminmenu .ame-has-submenu-icons > ul.wp-submenu > li > a {
106
  /* Push all submenus to the right to ensure that items with and without icons line up nicely. */
107
  padding-left: 36px;
108
  }
120
  opacity: 1;
121
  filter: alpha(opacity=100);
122
  }
123
+
124
+ /*
125
+ When the admin menu is collapsed, don't show a submenu icon in the submenu header.
126
+ */
127
+ .folded #adminmenu li.wp-submenu-head .ame-submenu-icon {
128
+ display: none;
129
+ }
includes/menu-editor-core.php CHANGED
@@ -3993,7 +3993,7 @@ class WPMenuEditor extends MenuEd_ShadowPluginFramework {
3993
  'ame-helper-style',
3994
  plugins_url('css/admin.css', $this->plugin_file),
3995
  array(),
3996
- '20211207'
3997
  );
3998
 
3999
  if ( $this->options['force_custom_dashicons'] ) {
3993
  'ame-helper-style',
3994
  plugins_url('css/admin.css', $this->plugin_file),
3995
  array(),
3996
+ '20220912'
3997
  );
3998
 
3999
  if ( $this->options['force_custom_dashicons'] ) {
js/menu-editor.js CHANGED
@@ -743,7 +743,7 @@ function loadMenuConfiguration(adminMenu) {
743
  verticalBoxOffset = (submenuBox.offset().top - mainMenuBox.offset().top),
744
  minSubmenuHeight = (selectedMenu.offset().top - mainMenuBox.offset().top)
745
  - verticalBoxOffset
746
- + menuTipHeight - submenuDropZone.outerHeight() + empiricalExtraHeight;
747
  minSubmenuHeight = Math.max(minSubmenuHeight, 0);
748
  submenuBox.css('min-height', minSubmenuHeight);
749
  }
@@ -2856,6 +2856,7 @@ function ameOnDomReady() {
2856
  }));
2857
 
2858
  function updateSubmenuBoxHeight(selectedMenu) {
 
2859
  const myColumn = menuPresenter.getColumnImmediate(selectedMenu.closest('.ws_main_container').data('ame-menu-level') || 1);
2860
  const nextColumn = menuPresenter.getColumnImmediate(myColumn.level + 1);
2861
  if (!nextColumn || (nextColumn === myColumn)) {
743
  verticalBoxOffset = (submenuBox.offset().top - mainMenuBox.offset().top),
744
  minSubmenuHeight = (selectedMenu.offset().top - mainMenuBox.offset().top)
745
  - verticalBoxOffset
746
+ + menuTipHeight - (submenuDropZone.outerHeight() || 0) + empiricalExtraHeight;
747
  minSubmenuHeight = Math.max(minSubmenuHeight, 0);
748
  submenuBox.css('min-height', minSubmenuHeight);
749
  }
2856
  }));
2857
 
2858
  function updateSubmenuBoxHeight(selectedMenu) {
2859
+ //TODO: Eliminate this duplication. Maybe we could just call the corresponding column method.
2860
  const myColumn = menuPresenter.getColumnImmediate(selectedMenu.closest('.ws_main_container').data('ame-menu-level') || 1);
2861
  const nextColumn = menuPresenter.getColumnImmediate(myColumn.level + 1);
2862
  if (!nextColumn || (nextColumn === myColumn)) {
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.10.3
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/blog/
9
  Requires PHP: 5.6
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.10.4
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/blog/
9
  Requires PHP: 5.6
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: 4.7
6
- Tested up to: 6.0.1
7
- Stable tag: 1.10.3
8
 
9
  Lets you edit the WordPress admin menu. You can re-order, hide or rename menus, add custom menus and more.
10
 
@@ -75,6 +75,10 @@ Plugins installed in the `mu-plugins` directory are treated as "always on", so y
75
 
76
  == Changelog ==
77
 
 
 
 
 
78
  = 1.10.3 =
79
  * Increased the minimum required PHP version to 5.6.
80
  * Fixed a number of deprecation warnings related to PHP 8.
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: 4.7
6
+ Tested up to: 6.1
7
+ Stable tag: 1.10.4
8
 
9
  Lets you edit the WordPress admin menu. You can re-order, hide or rename menus, add custom menus and more.
10
 
75
 
76
  == Changelog ==
77
 
78
+ = 1.10.4 =
79
+ * Fixed a layout bug in the menu editor where the submenu column did not increase its height to align with the currently selected top level menu.
80
+ * Tested up to WP 6.1.
81
+
82
  = 1.10.3 =
83
  * Increased the minimum required PHP version to 5.6.
84
  * Fixed a number of deprecation warnings related to PHP 8.