thelukemcdonald/post-format-menus — Issue #11: Make Submenu Position Work
Author: bradyvercher
Created: 2012-02-20 02:32:55+00:00
State: open

When a post format is added as a submenu item using show_in_menu, the menu position no longer does anything and the new item will be appended to the end of the submenu. I have a bit of code that will insert the menu at the position defined, but WordPress admin menu API is suboptimal, so it's possible to easily trounce an existing item.

For instance, if every post format were added as a submenu item of Posts below "Add New" (key of 10), they would replace the Categories (15) and Tags (16) items. The code just needs to be modified to update the keys of conflicting menu items so they're not overwritten.