[wp-trac] [WordPress Trac] #17979: Avoid losing widgets when switching themes
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 5 01:09:40 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: ux-feedback has-patch needs-testing |
-------------------------------------------------+------------------
Comment (by SergeyBiryukov):
When installing the fresh trunk to a fresh database, I see what ocean90
mentioned on IRC:
http://cl.ly/1z2T402d170w3C3v3H3P
After a page reload, Inactive Sidebar disappears.
This is what `wp_get_sidebars_widgets()` returns first time on a clean
install:
{{{
[wp_inactive_widgets] => Array()
[primary-widget-area] => Array(
[0] => search-2
[1] => recent-posts-2
[2] => recent-comments-2
[3] => archives-2
[4] => categories-2
[5] => meta-2
)
[secondary-widget-area] => Array()
[first-footer-widget-area] => Array()
[second-footer-widget-area] => Array()
[third-footer-widget-area] => Array()
[fourth-footer-widget-area] => Array()
}}}
Looks like the defaults in `wp-admin/includes/upgrade.php` were never
updated for Twenty Eleven:
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-
admin/includes/upgrade.php#L284
[attachment:17979.twenty-eleven-defaults.patch] should fix this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17979#comment:67>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list