[wp-trac] [WordPress Trac] #14145: Allow custom post types to be a submenu

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 2 22:37:07 UTC 2010

#14145: Allow custom post types to be a submenu
 Reporter:  nacin           |       Owner:     
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.1
Component:  Post Types      |     Version:     
 Severity:  normal          |    Keywords:     

Comment(by nacin):

 Replying to [comment:6 t31os_]:
 > Would you not consider the "Add New" link to be essential or would you
 consider having to navigate to the edit page first to click the "Add New"
 link there to be adequate?

 I would not, at all. As I said above, it comes down to the use case. Only
 if it makes sense for the post type to appear as a single submenu, without
 Add New and without taxonomies, should the plugin do it. We owe them that
 flexibility and their ability to make a decision.

 > I've also recently noticed a page not existing as a submenu item also
 renders that page inaccessible also due to a check performed in the
 `user_can_access_admin_page` function (IIRC) which in part validates
 access to a page based on the given page having a value inside the submenu
 array (came across this problem when moving menu items around myself). Did
 you test access to admin pages that don't have submenu items?

 I'm not sure what you mean there. Example code?

Ticket URL: <http://core.trac.wordpress.org/ticket/14145#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list