[wp-trac] [WordPress Trac] #39693: Fix missing assignment of widgets on theme switch
WordPress Trac
noreply at wordpress.org
Wed Aug 16 19:11:00 UTC 2017
#39693: Fix missing assignment of widgets on theme switch
-------------------------+-----------------------
Reporter: melchoyce | Owner:
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.9
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+-----------------------
Comment (by obenland):
I wrote tests for the existing version of `retreive_widgets()`, in an
effort to understand the function better and hopefully maintain backwards
compatibility with future changes. Not sure if I achieved 100% code
coverage, but it should be pretty close.
It seems like the function has four(!) different contexts from which it's
called from and behaves differently based on that context. I'll dive a bit
more into the history of that function to get a better understanding, but
for now the tests should at least give a little better footing to build
on.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39693#comment:55>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list