Allow custom post types to be a submenu
|Reported by:||nacin||Owned by:|
|Component:||Posts, Post Types||Keywords:||has-patch|
Patch adds show_in_menu to register_post_type $args. Defaults to true.
If === true, then it's a top-level menu. If false, then no menu. Otherwise, it's the parent page slug, like 'users.php' or 'edit.php?post_type=post'.
Patch mostly works. I'm finding that something in the menu handling code is giving wp-has-current-submenu classes to the 'Posts' menu even though the submenu is assigned to users.php.