[wp-trac] [WordPress Trac] #14263: show_in_nav_menus is false and menus still show

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 10 16:38:05 UTC 2010


#14263: show_in_nav_menus is false and menus still show
--------------------------+-------------------------------------------------
 Reporter:  CalebKniffen  |       Owner:                   
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  Awaiting Review  
Component:  Post Types    |     Version:  3.0              
 Severity:  normal        |    Keywords:  custom post types
--------------------------+-------------------------------------------------
 When show_ui is true and show_in_nav_menus is false menus sometimes show
 up still.

 This issue was discovered because I was attempting to consolidate several
 custom post types under one menu heading.  Even though show_in_nav_menus
 was false it would still show but only the last one I had created.

 The solution is simple.  In wp-admin/menu.php I added a filter to only
 include post_types that have show_in_nav_menus set to true.

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


More information about the wp-trac mailing list