[wp-trac] [WordPress Trac] #17979: Avoid losing widgets when switching themes
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 15 12:17:28 UTC 2011
#17979: Avoid losing widgets when switching themes
-------------------------------------+------------------
Reporter: lancewillett | Owner:
Type: enhancement | Status: new
Priority: high | Milestone: 3.3
Component: Widgets | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------
Comment (by westi):
Replying to [comment:94 azaozz]:
> Replying to [comment:93 mdawaffe]:
> > To test, set {{{$sidebars_widgets['array_version']}}} to 1, for
example.
>
> Was thinking it's time to remove that code completely. It was used to
convert the `$sidebars_widgets` format in WP 2.2 I believe.
>
> Without it the worst case scenario would be that all widgets are dumped
in "Inactive", and `$sidebars_widgets` will be overwritten on the first
movement of a widget on the widgets config screen.
Why don't we move this code to only run at db upgrade time if needed -
that way old old installs that upgrade still get fixed by it doesn't have
to run the rest of the time.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17979#comment:100>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list