wearerequired / admin-menu-manager

Manage the WordPress admin menu using a simple drag & drop interface.
https://wordpress.org/plugins/admin-menu-manager/
GNU General Public License v2.0
61 stars 6 forks source link

Preserve original menu icon #10

Closed swissspidy closed 9 years ago

swissspidy commented 9 years ago

Scenario 1:

  1. Move Jetpack to the Dashboard item so it becomes a sub menu item.
  2. Move the item back to its original menu.
  3. The original Jetpack Icon is lost until you refresh the page.

Scenario 2:

  1. Move the Add New item from the Pages item to the top level.
  2. The item gets an unfitting gear icon instead of inheriting the icon from Pages

Maybe this can be solved by adding a data attribute with the original values on init. It needs to support custom SVG icons like from Jetpack and WordPress SEO though. However, this information should be available in the array (Index 6 of top level items)

swissspidy commented 9 years ago

Looks like it's working quite well now... Tested it with WordPress SEO and some other plugins that add custom post types.

Jetpack should be supported with its next release when my PR is merged.