[wp-trac] [WordPress Trac] #39693: Fix missing assignment of widgets on theme switch
WordPress Trac
noreply at wordpress.org
Thu Sep 21 18:45:05 UTC 2017
#39693: Fix missing assignment of widgets on theme switch
-------------------------------------------------+-------------------------
Reporter: melchoyce | Owner: obenland
Type: enhancement | Status: reviewing
Priority: high | Milestone: 4.9
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses:
testing |
-------------------------------------------------+-------------------------
Comment (by obenland):
In [changeset:"41555"]:
{{{
#!CommitTicketReference repository="" revision="41555"
Widgets: Improved sidebar mapping on theme switch
Builds on efforts brought forward in #17979.
This will send sidebars through three levels of mapping:
1. If both themes have only one sidebar, that gets mapped.
2. If both themes have sidebars with the same slug, they get mapped.
3. Sidebars that (even partially) match slugs from a similar kind of
sidebar will get mapped.
Finally, if the theme has previously been active and we have a record of
its
sidebar configuration then, any unmapped sidebar will be restored to its
previous state.
Props westonruter, obenland, alexvorn2, timmydcrawford.
See #39693.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39693#comment:105>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list