[wp-trac] [WordPress Trac] #12541: Core post types should respect the show_ui parameter in register_post_type()

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 7 04:07:15 UTC 2010


#12541: Core post types should respect the show_ui parameter in
register_post_type()
--------------------------+-------------------------------------------------
 Reporter:  ptahdunbar    |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  Post Types    |     Version:  3.0        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
 Currently, the Posts, Pages, and Media menu items are hardcoded. This
 causes an issue if a user wants to hide those post types by re-registering
 the post type and setting the show_ui parameter to false. They don't get
 removed. In addition, if they set the show_ui parameter to true, you get
 duplicate menu items.

 This needs to be addressed. Potential issues: [[BR]]

 The Posts, Pages, and Media menu items loss their current position in the
 menu if they were to get re-registered. Possible solutions would be to
 extend register_post_type to specific the menu position ala a position
 parameter like add_menu_page() or WP should add hooks to reorder them back
 to their original positions. I'm for extending register_post_type() so any
 post type can benefit. Patches welcomed :)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12541>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list