[wp-trac] [WordPress Trac] #14145: Allow custom post types to be a submenu
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 29 21:40:04 UTC 2010
#14145: Allow custom post types to be a submenu
-----------------------------+----------------------------------------------
Reporter: nacin | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 3.1
Component: Post Types | Version:
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14145>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list