[wp-trac] [WordPress Trac] #13958: Deactivating custom post types/taxonomies breaks nav menus

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 18 05:48:45 UTC 2010


#13958: Deactivating custom post types/taxonomies breaks nav menus
--------------------------+-------------------------------------------------
 Reporter:  WraithKenny   |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0.1      
Component:  Menus         |     Version:  3.0        
 Severity:  normal        |    Keywords:  2nd-opinion
--------------------------+-------------------------------------------------
Changes (by nacin):

  * keywords:  post_type taxonomy => 2nd-opinion


Comment:

 The question is, how should we handle these menu items? We don't have a
 hook for unregistration we can attach to which we could then use to remove
 the post type.

 Likewise, when we go to set them up, if the corresponding post type
 doesn't exist and we remove the menu item, we'd be severing any menu item
 children that menu item has.

 Perhaps it would be best to convert them to custom links? I'm not even
 sure we store the URL though; we just summon that from the post type.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13958#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list