![]() ![]() That should also be fixed in this release. However, it turns out that in very rare cases it can be null or false, which would previously cause AME to crash when it tried to read role capabilities. This list can be empty, but should still be a list (i.e. In WordPress, each role has a list of capabilities. Like the previous issue, this is also a case of plugins or themes supplying incorrect data when creating something: in this case, custom roles. Some users reported seeing errors like array_merge(): Argument #1 must be of type array. Fixed a crash caused by invalid role capability lists However, if your site has any menu items like that, you might still see similar warnings in WordPress core files because WordPress itself also expects menu items to have URLs and capabilities. Those warnings should be fixed in version 2.19. admin-menu-editor-pro/includes/menu-item.php when AME tried to process these items. This could cause warnings like Undefined array key 2 in. It turns out that some plugin developers have apparently managed to bypass that requirement, creating menu items where these fields are not just empty but actually missing. Even if you leave them empty when using the WordPress API to add a menu, WordPress will still create the corresponding fields in its internal menu data structure. Normally, a menu item needs to have a URL and an associated capability. Notable Bug Fixes Fixed several PHP warnings caused by invalid menu items The existing “Colors” and “Separators” customization settings have also been moved to this new screen, and they also support live preview. Optionally, you can also uncheck “Dashboard Styler” to disable admin style customizations that were listed in the “New Settings” section above.Ĭomments Off on Version 2.21 – Admin Customizer If necessary, you can disable the Admin Customizer: go to the “Settings” tab in AME, find the “Modules” section, and uncheck “Admin Customizer”.When exporting settings through the “Export” tab, check the “Dashboard styles” option to export the new admin style settings.The Admin Customizer is a complex new feature, and it may currently be more buggy than the rest of the plugin.Once generated, an admin theme is static: it has no settings page.Does not include custom items or item-specific settings such as item order, renamed items, custom colours applied to individual menu items, etc.Does not include any per-role or per-user settings such as menu permissions, widget visibility, etc.Much smaller and faster than Admin Menu Editor Pro. ![]() White-label: Set your own plugin name, description, author name, etc.Includes a subset of visual customization settings, such as border styles, shadows, font sizes, and so on.Some more about the admin theme: Benefits To generate an admin theme, click the gear icon that’s next to the “Save Changes” button and choose “Download as admin theme” from the dropdown menu. The generated admin theme will be a stand-alone plugin that you can install on any site to apply your custom styles. The Admin Customizer can generate an admin theme from your settings. You can still find them in their usual places, too. Some of the previously existing settings like menu styles will also appear in the Admin Customizer. You can edit Toolbar styles (colours, etc) with just the core plugin. ![]() Notably, this does not require the Toolbar Editor add-on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |