[wp-trac] [WordPress Trac] #42965: Widgets not restored to previous widget area after switching back to previous theme
WordPress Trac
noreply at wordpress.org
Tue Jan 9 23:03:08 UTC 2018
#42965: Widgets not restored to previous widget area after switching back to
previous theme
--------------------------+--------------------
Reporter: probewise | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9.2
Component: Widgets | Version: 4.9
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+--------------------
Changes (by westonruter):
* keywords: reporter-feedback => needs-patch
* milestone: Awaiting Review => 4.9.2
Comment:
@probewise thank you for that excellent screencast showcasing the problem.
The soundtrack makes it all the more enjoyable 😀
So the problem is that if you have two widget areas A & B, with widgets A1
and B1 assigned respectively, then you switch to another theme with just a
single widget area A, then it will get assigned both widgets A1 and B1. So
far so good. But if you then switch back to the previous theme, then
widget area A still has both A1 and B1, with widget area B being
incorrectly empty.
@obenland I thought the algorithm for restoring widgets was first
assigning widgets back to their previous locations before then trying to
re-assign any newly-created widgets using best guessing?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42965#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list