=== Admin Menu Editor Pro === Contributors: whiteshadow Tags: admin, dashboard, menu, security, wpmu Requires at least: 4.1 Tested up to: 5.7 Stable tag: 2.14.2 Lets you directly edit the WordPress admin menu. You can re-order, hide or rename existing menus, add custom menus and more. == Description == Pro version of the Admin Menu Editor plugin. Lets you manually edit the Dashboard menu. You can reorder the menus, show/hide specific items, change access rights, and more. [Get the latest version here.](http://adminmenueditor.com/updates/) **Pro Version Features** - Import/export custom menus. - Set menu items to open in a new window or IFrame. - Improved, role-based menu permissions interface. - Use shortcodes in menu fields. - Create menus accessible only to a specific user (by setting extra capability to "user:username"). **Other Features** - Change menu title, access rights, URL and more. - Create custom menus. - Sort items using a simple drag & drop interface. - Move items to a different submenus. - Hide any menu or submenu item. - Supports WordPress MultiSite/WPMU. **Requirements** - WordPress 4.1 or later _For maximum compatibility and security, using a modern web browser such as Firefox, Opera, Chrome or Safari is recommended. Certain advanced features (e.g. menu import) may not work reliably or at all in Internet Explorer and other outdated browsers._ **Credits** This plugin uses some icons from the ["Silk" icon set](http://fortawesome.github.io/Font-Awesome/) by Mark James. These icons are licensed under the [Creative Commons Attribution 3.0 License](http://creativecommons.org/licenses/by/3.0/). == Installation == _If you already have the free version of Admin Menu Editor installed, deactivate it before installing the Pro version._ **Normal installation** 1. Download the admin-menu-editor-pro.zip file to your computer. 1. Unzip the file. 1. Upload the `admin-menu-editor-pro` directory to your `/wp-content/plugins/` directory. 1. Activate the plugin through the 'Plugins' menu in WordPress. That's it. You can access the the menu editor by going to _Settings -> Menu Editor Pro_. The plugin will automatically load your current menu configuration the first time you run it. **WP MultiSite installation** If you have WordPress set up in multisite ("Network") mode, you can also install Admin Menu Editor as a global plugin. This will enable you to edit the Dashboard menu for all sites and users at once. 1. Download the admin-menu-editor-pro.zip file to your computer. 1. Unzip the file. 1. Create a new directory named `mu-plugins` in your site's `wp-content` directory (unless it already exists). 1. Upload the `admin-menu-editor-pro` directory to `/wp-content/mu-plugins/`. 1. Move `admin-menu-editor-mu.php` from `admin-menu-editor-pro/includes` to `/wp-content/mu-plugins/`. Plugins installed in the `mu-plugins` directory are treated as "always on", so you don't need to explicitly activate the menu editor. Just go to _Settings -> Menu Editor_ and start customizing your admin menu :) _Notes_ - Instead of installing Admin Menu Editor in `mu-plugins`, you can also install it normally and then activate it globally via "Network Activate". However, this will make the plugin visible to normal users when it is inactive (e.g. during upgrades). - When Admin Menu Editor is installed in `mu-plugins` or activated via "Network Activate", only the "super admin" user can access the menu editor page. Other users will see the customized Dashboard menu, but be unable to edit it. - It is currently not possible to install Admin Menu Editor as both a normal and global plugin on the same site. == Notes == Here are some usage tips and other things that can be good to know when using the menu editor : - WordPress uses the concept of [roles and capabilities](http://codex.wordpress.org/Roles_and_Capabilities "An overview of roles and capabilities") to manage access rights. Each Dashboard menu item has an associated capability setting, and only the users that possess that capability can see and use that menu item. - "Hidden" menus are invisible to everyone - including the administrator - but they can still be accessed via the direct page URL. To make a menu inaccessible to certain users, edit its permissions. - If you delete any of the default menus they will reappear after saving. This is by design. To get rid of a menu for good, either hide it or set it's access rights to a higher level. == Changelog == [Get the latest version here.](http://adminmenueditor.com/updates/) = 2.14.2 (2021-05-07) = ##### Fixed * Fixed a bug where the plugin could incorrectly identify a separator as the current menu item. In practice, separators don't link to anything and they cannot be clicked, so they should not even be considered when trying to figure out which menu item matches the current page URL. * Fixed a couple of icon and separator rendering bugs where the hover marker that was introduced in WP 5.7 could either show up in the wrong place or show up when it's not supposed to. * Fixed the submenu box not expanding to align with the selected parent item. * Fixed a PHP 5 compatibility issue where the "Prevent bbPress from resetting role capabilities" setting would trigger notices and not work correctly. This bug did not affect more recent PHP versions such as PHP 7.x. = 2.14.1 (2021-03-15) = ##### Fixed * Fixed a bug introduced in version 2.14 where the "Embed WP page" feature would no longer display the field that let you choose the page. * Fixed a jQuery Migrate warning about isFunction() being deprecated. = 2.14 (2021-03-08) = ##### Added * Added the ability to create menu headings. Headings are unclickable and can be styled separately from regular menu items. By default, their color and background don't change on hover. You can configure headings to act as collapsible sections. When you click a collapsible heading, it will show/hide all of the menu items between that heading and the next one. * Added environment-dependent colors. In the "Tweaks" tab, you can configure the plugin to change the background color of the Toolbar (a.k.a Admin Bar) and the admin menu based on the current environment: production, development, etc. You can also display the environment type in the Toolbar. The plugin uses the environment type reported by WP core, which in turn uses the "WP_ENVIRONMENT_TYPE" constant. ##### Fixed * Fixed a conflict with the "PRO Theme" plugin where "PRO Theme" would expand the wrong top level admin menu if the current submenu item had been moved from one parent menu to another. * Fixed PHP notice "Undefined offset: 0 in /wp-includes/capabilities.php on line 70" (various line numbers). * Fixed a conflict with "Stripe For WooCommerce" 3.2.12 where the "Stripe Gateway" menu had a wrong URL because a hidden menu item was not removed. * Fixed a browser warning about the "ws_nmh_pending_seen_urls" cookie not using the SameSite attribute. * Fixed a conflict with WooFunnels where changing the WooFunnels menu icon would result in both of the icons - the original one and the new one - showing up at the same time. The new icon was also misaligned. * Fixed an unconfirmed conflict where AME could trigger a fatal error because the cached meta box settings were seemingly cleared just before they were used. * Fixed misleading option name in the "Export" tab that made it look like it was possible to export roles. Actually, at the moment the plugin only exports the "editable roles" setting, not the roles themselves. * Fixed admin menu not scrolling when the Toolbar/Admin Bar was hidden. * Fixed a bug where the "Admin CSS" code editor would be rendered incorrectly - broken layout, partially invisible text, etc - if the "Admin CSS" section was closed when the user opened the "Tweaks" tab. * Fixed an encoding related issue where the "Roles" tab would be empty or just show a "Loading..." message forever. * Fixed an occasional bug where AME did not detect custom Gutenberg blocks created by Advanced Custom Fields Pro. ##### Changed * Minor visual changes. * Dashboard settings are now compressed and base64-encoded to prevent data corruption caused by database migration tools that attempt to replace file paths in the database without correctly escaping (back-)slashes. * Tested with WordPress 5.7 and 5.8-alpha. = 2.13 (2020-12-15) = ##### Added * Added a "bbPress override" option that prevents bbPress from resetting all changes that are made to dynamic bbPress roles. Enabling this option allows you to edit bbPress roles with this or any other role editing plugin. ##### Fixed * Fixed a bug where registering a custom post type in a mu-plugin could cause Admin Menu Editor Pro to trigger either a fatal error or a warning and multiple notices. * Fixed the role editor going into infinite recursion if there was a meta capability that mapped to itself. * Fixed a conflict that caused some hidden Simple Calendars menu items to show up when Admin Menu Editor was activated. * Fixed a bug where menu items that had special characters like "&" and "/" in the slug could stop working if they were moved to a different submenu or to the top level. * Fixed a bug where changing the menu icon to an external image (like a URL pointing to a PNG file) could result in the old and the new icon being displayed at once, either side by side or one below the other. This only affected menu items that had an icon set in CSS by using a `::before` pseudo-element. * Fixed many jQuery deprecation warnings. * Fixed a bug where some menu settings would not loaded from the database when another plugin triggered a filter that caused the menu configuration to be loaded before AME loaded its modules. * Fixed bug that could cause an obscure conflict with plugins that change the admin URL, like "WP Hide & Security Enhancer". When a user tried to open "Dashboard -> Home", the plugin could incorrectly apply the permisssions of a another menu item to the "Home" item. If the other menu item was configured to be inaccessible, the user would get an error message when logging in (they were still successfully logged in). ##### Changed * Improved error reporting in situations where the plugin can't parse menu data. = 2.12.4 (2020-10-02) = * Hotfix: Fixed a new plugin conflict introduced in version 2.12.3 that could prevent some add-on features like the "Branding" tab from being loaded on some sites. = 2.12.3 (2020-10-02) = * Fixed a bug where separator settings could be lost if another plugin or theme indirectly caused this plugin to load the menu configuration earlier than expected. * Made custom menu icon colors apply to SVG icons. Previously, you could only change the color of those menu icons that are implemented using icon fonts like Dashicons. * Improved error reporting in situations where the plugin can't parse menu data. = 2.12.2 (2020-08-25) = * Fixed a conflict with Elementor 3.0 that caused the "Theme Builder" menu item to have the wrong URL. * Minor performance improvements. = 2.12.1 (2020-08-13) = * Fixed a few bugs and plugin conflicts introduced in version 2.12 that could prevent certain roles from editing some or all users. This issue was related to the new "editable roles" feature. The default settings were too restrictive for some sites that use custom capabilities and the feature was not compatible with bbPress roles. = 2.12 (2020-08-10) = ##### Added * Added "editable roles" settings. You can use these settings to control which roles a user can assign to other users. Additionally, this feature will prevent the user or role from editing users that have any non-editable roles. By default, a role can only assign/edit those roles that have the same or fewer capabilities. * Added a new section to the "Roles" tab that lets you change user roles, including the ability to assign multiple roles to one user. * Added the ability to change menu separator color, size, and margins. * Added an option to disable WPML support. * Added an option to hide the WordPress logo when Gutenberg is in fullscreen mode. ##### Fixed * Added a workaround to deal with plugins and themes that create invalid, non-string capabilities. Previously, if another plugin used a capability like `false` (the boolean value, not the word) when registering a custom post type or taxonomy, the "Roles" tab would be empty and unusable. * Fixed menu colors not being applied to menus that have an ID that contains special characters like "&", "/" and so on. * Fixed the browser freezing for a long time when pasting a very large block of code into the "Add custom admin CSS" text box. * Fixed custom menu colors not being applied to the icon of the currently selected menu item. * Fixed a minor WP 5.5 compatibility issue where some of the boxes shown on the plugin settings pages were displayed incorrectly. * Fixed a bug where hidden plugins were still visible under "Dashboard -> Updates" and were included in the number of updates shown in the admin menu, Toolbar and other places. * Fixed a conflict with WP Job Manager where activating Admin Menu Editor made the hidden "Dashboard -> Setup" menu visible. * Fixed a browser warning about cookies using "SameSite: None". * Fixed a conflict with plugins that use a different, incompatible version of the jquery-cookie library. For example: Participants Database Field Group Tabs. * Fixed a bug where it was impossible to assign any capabilities to a role that didn't already have at least one capability. ##### Changed * The "hide all admin notices" option now also hides notices that use the core update notification styles. For example, it will hide this notification: "WordPress X.Y is available! Please update now." = 2.11 (2020-02-22) = ##### Added * Added a role editor. You can assign/remove role capabilities, create custom roles, delete roles, and more. This is a new and complex feature. If you notice any bugs or other issues, please report them. * Added the ability to add custom CSS to the WordPress admin. To enter your CSS code, go to the "Tweaks" tab and find the new "Admin CSS" section. You can add multiple CSS snippets and enable/disable each snippet for specific roles or users. * Added a "reset permissions" toolbar button. It resets all menu permissions and visibility settings for the selected role or user to the defaults. This doesn't affect custom permissions applied by other plugins. To display the new button, click the "V" button on the right side of the toolbar. * Added "Title" and "Content Editor" options to the "Meta Boxes" tab. They let you hide the post title field and the main post editor, respectively. * Added a the ability to hide specific Gutenberg blocks from roles or users. This feature is in the "Tweaks" tab. * Added an option to hide the Gutenberg options menu. This is the "more tools & options" menu that you can open by clicking the three vertical dots in the top right corner of the editor. * Hiding the "Format" and "Publish" meta boxes now also hides the corresponding rows in Gutenberg's "Status & Visibility" panel: "Post Format" and "Publish". ##### Fixed * Fixed admin notices being briefly visible even when the "hide all admin notices" option was enabled. * Added a compatibility workaround for MailPoet 3. Custom menu colors and FontAwesome icons will now show up properly on MailPoet's admin pages. * The hidden "getting started" menu item created by the plugin Extended Widget Options will no longer become visible when you activate Admin Menu Editor. * Slightly reduced the chance of encountering a race condition when saving meta box settings. ##### Changed * Reduced the amount of space used by plugin visibility settings. This change will take effect the next time you save those settings. * Extended the "compress menu configuration data" feature to use ZLIB compression in addition to menu data restructuring. This greatly decreases the amount of data stored in the database, but increases decompression overhead. Configuration compression is disabled by default. You can enable it in the "Settings" tab. = 2.10.2 (2019-12-16) = ##### Fixed * 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. * Most likely fixed the fatal error "call to a member function isFirstRefreshDone() on null". * Fixed a conflict with the WikiPress theme from HeroThemes and similar themes and plugins that load the Gutenberg editor in unusal ways (e.g. outside the admin panel). = 2.10.1 (2019-11-13) = ##### Fixed * Fixed a bug where the "highlight new menus" feature could keep certain top level menus permanently highlighted when some of their submenus were hidden via CSS/JS. ##### Changed * Updated the appearance of plugin settings pages to match the admin CSS changes introduced in WordPress 5.3. = 2.10 (2019-10-22) = ##### Added * Added a "Tweaks" tab to the settings page. This tab contains miscellaneous admin customization features. It includes new options like: - Hide the "Sreen Options" button. - Hide all admin notices. - Hide profile fields. - Hide sidebars and sidebar widgets. - Hide TinyMCE buttons (TinMCE is the classic post editor). ##### Fixed * Fixed inconsistent dialog title bar colours that could happen when another plugin loaded the default WP dialog styles. * Fixed an issue where the meta box list in the "Meta Boxes" tab could be missing some boxes if you edited a post/page after installing the plugin but before opening that tab. * Changed how the plugin displays errors that happen while loading the menu configuration (e.g. due to an incompatible format or corrupted data). Instead of triggering a fatal error, the plugin will display an admin notice. = 2.9.1 (2019-08-23) = ##### Fixed * Fixed a minor conflict with Toolset Types. * Fixed a conflict with the MailPoet plugin where it was not possible to change the plugin's menu icon. * Fixed a bug where the plugin could misidentify certain core menus that have different URLs for different roles. * Fixed a bug where the plugin could generate incorrect URLs for submenu items where the parent menu URL contained HTML entities like "&". * Fixed an issue where certain vulnerability scanners showed a warning about one of the plugin files because it used the eval() function. This particular instance of eval() was not a security flaw, but it has been now been removed to prevent further false positives. * Fixed a bug where the plugin could show an incorrect error message when a menu item was hidden due to there being another hidden menu item with the same URL. * Fixed a minor issue with field alignment in menu properties. * The "Site Health" menu will no longer be highlighted as a new menu. ##### Changed * Improved compatibility with plugins that use non-standard hooks to add their meta boxes (example: WPML). = 2.9 (2019-05-09) = ##### Added * Added a "Hide the frame scollbar" option to menu items that open in an iframe. ##### Changed * Improved the automatic frame height calculation algorithm. When the framed page is on the same site (that is, same origin), the frame height will match the content height. This means you no longer need to manually set the frame height for pages like that. * Tested with WP 5.2. = 2.8.2 (2019-04-05) = ##### Added * Added an option to automatically hide new plugins from the "Plugins" page. It was already possible to hide newly installed plugins, but previously this feature was tied to the "show all plugins" checkbox in the "Plugins" tab. Now there's a separate setting just for new plugins, which lets you hide new plugins without also hiding existing plugins. ##### Fixed * Fixed a bug that stopped the icon dropdown from working in certain menu items and made it impossible to change the icon of the Jetpack menu. * Fixed a PHP warning: "non-string needles will be interpreted as strings". This was originally patched in 2.8, but the patch was incomplete and did not fully resolve the issue. This version should fix the warning in all cases. * Fixed missing dependencies that prevented users from hiding meta boxes in Gutenberg. Partial Gutenberg support was added in 2.8, but most users couldn't take advantage of it due to missing files. = 2.8.1 (2019-02-15) = ##### Fixed * Fixed a bug where clicking the "Add User" button in the "Users" tab opened an empty "Select Users" dialog, which made it impossible to select any users. Now the dialog should actually display existing users. = 2.8 (2019-02-07) = ##### Added * Added partial Gutenberg support. When you hide a meta box, the corresponding Gutenberg document panel will also be removed. This works for most boxes/panels. * Added three new shortcodes: `[wp-user-first-name]`, `[wp-user-last-name]`, `[wp-user-login]`. They display the current user's first name, last name, and username/login, respectively. * Added a new WP-CLI command: "reset-plugin-access". It changes the "who can access this plugin" setting to the default value. The default is either "Super Admin" (in Multisite) on "Anyone with the "manage_options" capability" (on regular sites). This is useful in situations where someone accidentally locks themselves out by deleting the only user who could access the plugin. ##### Fixed * Fixed a PHP warning being thrown when the WPMU_PLUGIN_DIR constant is not a valid path or the full path cannot be determined. * Fixed a potential PHP warning about an undefined constant when uninstalling the plugin. * Fixed a rare PHP warning "invalid argument supplied for foreach() in menu-editor-core.php on line 4258" that was most likely caused by an unidentified plugin conflict. * Fixed a few minor HTML validation errors. * Fixed an inefficiency in the "select an icon from the media library" process that could make the browser use more memory than necessary. ##### Changed * When a dashboard widget is only enabled for one or a few roles, it will no longer appear enabled in the "All" section. Instead, it will be shown in an "indeterminate" state (like menus that have some visible and some hidden items). * The "Load default menu" and "Undo changes" buttons will now appear disabled when you select a role or a user. They will be enabled only when you select the "All" option. This is to indicate that these buttons affect all roles and users, not just the current selection. = 2.7 (2018-10-01) = ##### Added * Added new "Import" and "Export" tabs. Now you can import and export most of the plugin settings, not just the admin menu and widgets. = 2.6.6 (2018-08-14) = ##### Fixed * Fixed a bug where very long submenus wouldn't be scrollable if the current item was one that was moved to the current submenu from a different top level menu. * Fixed an obscure bug where clicking on an item in the current submenu could cause the entire submenu to "jump" up or down. * Fixed AME not highlighting the correct menu item when there was a space in any of the query parameter values. * Fixed another bug where the plugin didn't highlight the correct item if it was the first item in a submenu and also a custom item. = 2.6.5 (2018-05-25) = ##### Added * Added a "Documentation" link below the plugin description. For people concerned about the recent GDPR legislation, the documentation now includes a page explaining [how the plugin processes personal data](https://adminmenueditor.com/documentation/data-processing-notes/). ##### Fixed * Fixed a security issue where non-privileged users who were given access to a menu item that requires the "manage_options" capability would then also be able to access the special "All Settings" page (options.php). = 2.6.4 (2018-05-03) = ##### Added * Added an option to automatically hide new menu items from users who can't access the menu editor. You can find it in the "Settings" tab. * Added an RSS feed widget. You can create new widgets in the "Dashboard Widgets" tab. ##### Fixed * Fixed a bug that made the settings UI treat certain users as if they had no roles. * Fixed a potential crash that was caused by a bug in the "WP Editor" plugin version 1.2.6.3. * Fixed some obsolete callback syntax that was still using "&$this". ##### Changed * Made the "Attachment" section automatically show up in the "Meta Boxes" tab. * Changed the order of some menu settings and added separators between groups of settings. * Removed the "Screen Options" panel from AME tabs that didn't need it like "Plugins". = 2.6.3 (2018-02-23) = ##### Fixed * Fixed a bug where the "Dashboard Widgets" tab always used site-wide settings regardless of which scope the user had selected. ##### Changed * Various technical improvements that are related to supporting add-ons like Toolbar Editor or the upcoming Branding add-on. = 2.6.2 (2018-02-12) = ##### Added * Added an `[ame-count-bubble]` shortcode. When used in a menu title, it takes the number bubble from the default menu title and displays it in the custom title. A "bubble" is the small number in a colored circle that appears on some menu items, like "Dashboard -> Updates (3)", "Comments (12)", or "WooCommerce -> Orders (5)". ##### Fixed * Fixed a PHP 7.2 compatibility issue that caused this warning to show up on the menu editor page: "count(): Parameter must be an array or an object that implements Countable in menu-editor-core.php". * Fixed a JavaScript error "cannot read property 'replace' of null" in the "Meta Boxes" tab that would show up if another plugin added a meta box without a valid title. * Fixed a JavaScript error "actor is null" when trying to save dashboard widget settings that contain user-specific permissions for nonexistent users. This typically happened when importing settings from another site. * Fixed a conflict with Ultra WordPress Admin 7.4 that made it impossible to hide plugins. ##### Changed * Tested with WP 4.9.4 and 5.0-alpha. = 2.6.1 (2018-01-07) = ##### Added * Added a list of basic tutorials to the menu editor screen. ##### Fixed * Fixed a bug where menu items that use meta capabilities would have the "hidden from everyone" icon even if there were not actually hidden. * Fixed incorrect version numbers in the "can't import settings from a newer version" error message. * Fixed a bug that could cause some network admin menus to be highlighted as if they were new. * Fixed a conflict with WP Courseware 4.1.2 where activating AME would cause a lot of extra menu items to show up unexpectedly. ##### Changed * The plugin will display a warning if you try to hide the "Slug" metabox. Due to a known bug in WordPress, hiding this box can prevent you from changing the post permalink. * Replaced the green puzzle-piece icon that was used to mark new items with an icon that just says "new". * Tested with 4.9.1. = 2.6 (2017-11-09) = ##### Fixed * Added a workaround for a buggy "defer_parsing_of_js" code snippet that some users have added to their functions.php. This snippet produces invalid HTML code, which used to break the menu editor. * Fixed a bug that caused WP-CLI to behave as if there were no installed plugins and no available updates. * Fixed the "Tags" menu showing up as inaccessible. * Fixed missing color labels in WordPress 4.9. * Fixed a PHP warning that appeared when using this plugin together with WooCommerce or YITH WooCommerce Gift Cards and running PHP 7.1. * Fixed a bug that prevented some capability changes from being applied. * Fixed a bug where submenu items would not inherit FontAwesome icons from their parent menu. ##### Added * You can now edit the network admin menu. The settings page is in the network admin, under "Settings -> Menu Editor Pro". Note that you still need to go to a site dashboard to edit the regular admin menu. * The "Embed WP page" feature now works with private pages and posts, not just public pages. * Added the ability to hide the special "Welcome" widget. ##### Changed * Minor performance improvements. * Tested with WP 4.8.3 and 4.9-RC2. = 2.5.1 (2017-06-09) = ##### Fixed * Fixed a WP-CLI compatibility issue where some CLI commands would fail with a fatal error: "Call to a member function check_current_user_access() on null". * Fixed a couple of UI layout issues that affected RTL sites. * Fixed a conflict with WP Nag Hide that prevented the "Open in": "New window" setting from working. * Fixed an oversight that could cause a fatal error if a theme or plugin was using magic methods (i.e. __call and __callStatic) for hook callbacks. * Fixed a CSS issue where, when changing the menu icon, certain Dashicons wouldn't properly replace the original icon. = 2.5 (2017-06-05) = ##### Added * You can edit plugin names and descriptions through the "Plugins" tab. This only changes how plugins are displayed on the "Plugins" page. It doesn't affect plugin files on disk. * Added "Meta Boxes" tab. It lets you hide meta boxes and custom fields from roles and users. * Added an option to highlight new menu items. This feature is off by default. You can enable it in the "Settings" tab. * Added an option to compress menu data that the plugin stores in the database. This significantly reduces the size of the relevant database entries, but it also adds some decompression overhead to every admin page load. You can enable this feature in the "Settings" tab. ##### Fixed * Added a compatibility workaround for the Divi Training plugin. The hidden menu items that it adds to the "Dashboard" menu should no longer show up when you activate AME. * Added a workaround that improves compatibility with plugins that set their menu icons using CSS. Previously, there were situations where users were not able to change menu icons because the plugin that created the menu item used CSS to override the normal icon. AME now adds an extra stylesheet that overrides icons with !important. * Fixed an old bug where sorting menu items would put all separators at the top. Now they'll stay near their preceding menu item. * Fixed incorrect shadows on custom screen options links. * Fixed a couple of UI layout issues that were caused by bugs in other plugins. * Fixed a rare issue where hiding the admin bar would leave behind empty space. ##### Changed * Minor performance optimizations. * When you use the "A-Z" button to sort top level menus, it also sorts submenu items. To avoid compatibility issues, the first item of each submenu stays in its original position. * Automatically reset plugin access if the only allowed user no longer exists. This should cut down on the number of users who accidentally lock themselves out by setting "Who can access the plugin" to "Only the current user" and then later deleting that user account. = 2.4.3 (2017-01-05) = * Added a workaround for WooCommerce 2.6.8 to display the number of new orders in the "Orders" menu title. * Tested with WP 4.7 and 4.8-alpha. = 2.4.2 (2016-10-21) = ##### Added * Added a way to completely hide the admin menu and the Toolbar (a.k.a Admin Bar) from specific roles or users. * You can now copy menu permissions from one user to another with the "Copy permissions" toolbar button. Note that this button is hidden by default. To reveal it, click the rightmost button that looks like a double down arrow. ##### Fixed * Fixed a bug where opening and closing the properties of a new menu item would set "extra capability" to "read". * The "Welcome to All in One SEO Pack" menu item no longer shows up after activating the menu editor. * Fixed an inconsequential "403 Forbidden" error in Chrome dev toools that was caused by Chrome trying and failing to load source maps for certain CSS & JS files. = 2.4.1 (2016-08-29) = * The plugin now remembers the last selected menu item and re-selects it after you save changes. * Fixed a layout issue where menus with very long titles would appear incorrectly in the menu editor. * When you change the menu title, the window title will also be changed to match it. You can still edit the window title separately if necessary. * Moved the "Icon URL" field up and moved "Window title" down. = 2.4 (2016-08-15) = * Added Font Awesome icons. * Added a "Users" tab that lets you hide individual users. Hidden users don't show up on the "All Users" page and they can't be edited or deleted by normal users. However, they can still show up in other parts of the WP admin (e.g. as post authors), and their content is not specially protected. * Added more detailed permission error messages. You can turn them off in the "Settings" tab by changing "Error verbosity level" to "Low". * Fixed the "Cancel" button in the "Select Visible Users" dialog not working when the "Plugins" tab is open. * Tested up to WP 4.6. = 2.3.1 (2016-06-16) = * Allow the activation of license keys that no longer have access to updates. Previously activation could fail, which was confusing and made some users think that their key was invalid. Now "expired" keys can be properly activated (though they still don't get plugin updates). = 2.3 (2016-06-11) = * Added the "Plugins" tab. It lets you hide specific plugins from other users. Note that this only affects the list on the "Plugins" page and tasks like editing plugin files, but it doesn't affect the admin menu. If you hide a plugin, its menu items will still show up (assuming the user has the required permissions). * Fixed the role/user list in the "Permissions" popup. Now it should show all selected users, not just the current user. * Fixed wp-cli integration. = 2.2.3 (2016-05-22) = * Fixed a bug where selecting a role and then creating a new menu item could render most of the admin menu inaccessible to all other roles. This bug was introduced in version 2.2.2. = 2.2.2 (2016-05-11) = ##### Fixed * Fixed a bug that made menu items "jump" slightly to the left when you start to drag them. * Fixed a bug that caused menu items with the required capability "administrator" to appear unchecked (= hidden) for the Administrator role. This also applies to other roles. * Fixed a Multisite-specific bug where temporarily switching to another site using the switch_to_blog() function could result in the user having the wrong permissions. ##### Changed * When saving settings, the plugin will compress the menu data before sending it to the server. This reduces the chances of exceeding request size limits that are imposed by some hosting companies. * Tested up to WordPress 4.5.2. = 2.2.1 (2016-04-16) = ##### Fixed * Fixed a bug where typing in the search box in the "Choose Visible Users" dialog didn't do anything. Now it will actually search the list of registered users. This bug was introduced in version 2.2. * Fixed a bug that prevented CPT permissions from working. This bug was also introduced in version 2.2. * Fixed a backwards-compatibility bug related to the Ninja Forms plugin. * Fixed a bug in the "Modern" editor theme that caused the "embed WordPress page" panel to appear underneath the selected menu item, making it near-impossible to see the panel. ##### Changed * You can dismiss the "Settings saved" notification by clicking the "x" button. = 2.2 = ##### Added * Added a "Colors" button that lets you set the default color scheme for all admin menus at once. * Added a few more menu icons. * Added basic support for the special "customize" and "delete_site" meta capabilities. ##### Fixed * Fixed a "deprecated constructor" warning on sites running PHP 7. * Fixed a bug that prevented menu items with an empty slug (i.e. no URL) from showing up. * Fixed a bug where collapsing submenu properties would flag the "Icon URL" field as having a custom value even if you hadn't actually changed it. * Fixed a rare WPML conflict that sometimes caused the admin menu to use a mix of different languages. * Improved compatibility with buggy plugins and themes that throw JavaScript errors in their DOM-ready handlers. * Renamed jquery.cookie.js to jquery.biscuit.js as a workaround for servers with overly aggressive ModSecurity configuration. Apparently, some servers block access to any URL that contains the text ".cookie". * Added a compatibility workaround for the DW Question & Answer plugin. The hidden "Welcome", "Changelog" and "Credits" menu items should no longer show up when you activate AME. * Added locking to reduce the risk of triggering a race condition when saving menu settings. ##### Changed * Added tabs to the settings page: "Admin Menu" and "Settings". These tabs replace the heading buttons that were previously used to switch between the menu editor and general plugin settings. * Tested up to WordPress 4.5-RC1. = 2.1 = ##### Added * Added a new editor colour scheme that makes the menu editor look more like other WordPress admin pages (e.g. Appearance -> Menus). You can enable it through the plugin settings page. * New menu items that are added by other plugins will now show up in the same relative position as they would be in the default admin menu. Alternatively, they can be displayed at the bottom of the menu. You can configure this in plugin settings. ##### Fixed * Fixed JavaScript error "_.empty is not a function". * Improved compatibility with IP Geo Block. * Fixed a layout issue where starting to drag one menu item would cause some other items to move around or change size very slightly. * Fixed a misleading tooltip. ##### Changed * Tested up to WordPress 4.4-RC1. * Show an error message if an update fails due to license problems (expired key, key not activated, etc). Previously updates done through the "Dashboard -> Updates" pages would fail with a vague download error, and inline updates would hang at "Updating..." indefinitely. = 2.0 = ##### Added * Added "Choose users..." link that lets you select which users will show up in the menu editor. This makes it easier to change menu permissions for specific users. * Added "Hide all submenu items when this item is hidden" setting. Normally, a top level menu stays visible as long as it has at least one accessible submenu item (that's just how WordPress works). You can use this setting to override that, forcing all submenu items to stay hidden if the user doesn't have access to the parent menu. Note that this can break plugins that rely on the default WordPress behaviour, so use with care. * Added "Frame height" field. You can manually set the height of `