[wp-trac] [WordPress Trac] #39692: Fix missing assignment of menus on theme switch

WordPress Trac noreply at wordpress.org
Wed Aug 9 21:03:17 UTC 2017


#39692: Fix missing assignment of menus on theme switch
--------------------------------------------+-----------------------
 Reporter:  melchoyce                       |       Owner:  obenland
     Type:  enhancement                     |      Status:  closed
 Priority:  normal                          |   Milestone:  4.9
Component:  Menus                           |     Version:
 Severity:  normal                          |  Resolution:  fixed
 Keywords:  has-patch needs-testing commit  |     Focuses:
--------------------------------------------+-----------------------
Changes (by obenland):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41237"]:
 {{{
 #!CommitTicketReference repository="" revision="41237"
 Map nav menu locations on theme switch

 This will send nav menu locations through three levels of mapping:
 1. If both themes have only one location, that gets mapped.
 2. If both themes have locations with the same slug, they get mapped.
 3. Locations that (even partially) match slugs from a similar kind of menu
 location will get mapped.

 Menu locations are mapped for Live Previews in the Customizer and during
 theme switches.

 Props westonruter, obenland, welcher, melchoyce.
 Fixes #39692.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39692#comment:58>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list