[wp-trac] [WordPress Trac] #42121: Menus: Filter orphaned locations on theme switch

WordPress Trac noreply at wordpress.org
Fri Oct 6 16:34:38 UTC 2017


#42121: Menus: Filter orphaned locations on theme switch
----------------------------+---------------------------
 Reporter:  obenland        |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  4.9
Component:  Menus           |    Version:  trunk
 Severity:  normal          |   Keywords:  needs-testing
  Focuses:  administration  |
----------------------------+---------------------------
 With menu mapping in place (#39692), it is possible to get unexpected
 mapping results after nav menu locations have been removed. If the
 `nav_menu_locations` theme mod still contains data for that removed
 location, and the slug happens to be part of the group of slugs that are
 being mapped, it is possible to have that outdated value mapped to a new
 menu location when switching themes.

 I first noticed it when debugging the menu preview in the customizer,
 which in its call to `wp_map_nav_menu_locations()` would always return the
 menu locations of both old and new themes.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42121>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list