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

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 10 23:36:31 UTC 2011


#13958: Deactivating custom post types/taxonomies breaks nav menus
------------------------------+-----------------------
 Reporter:  WraithKenny       |       Owner:
     Type:  defect (bug)      |      Status:  assigned
 Priority:  normal            |   Milestone:  3.2
Component:  Menus             |     Version:  3.0
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------
Changes (by nacin):

 * keywords:  has-patch => has-patch commit


Comment:

 I didn't think I'd ever see a simple patch here, but that is a mighty fine
 patch. I think it's time.

 What happens to valid children? Do they become orphaned?

 isset() should become !empty() (when adding classes), and !empty() implies
 truthiness, so no need for $item->_invalid == true for the array_filter
 callback.

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


More information about the wp-trac mailing list