[wp-trac] Re: [WordPress Trac] #9695: New widget interface gets
severely mixed up when switching themes
WordPress Trac
wp-trac at lists.automattic.com
Fri May 1 11:01:22 GMT 2009
#9695: New widget interface gets severely mixed up when switching themes
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Widgets | Version: 2.8
Severity: blocker | Keywords: needs-patch
-------------------------------+--------------------------------------------
Changes (by Denis-de-Bernardy):
* keywords: => needs-patch
* severity: major => blocker
Comment:
load the dump into a trunk install, browse dashboard.
{{{
var_dump(get_option('sidebars_widgets'));
array(12) {
["the_entry"]=>
array(6) {
[0]=>
string(12) "entry_header"
[1]=>
string(13) "entry_content"
[2]=>
string(10) "entry_tags"
[3]=>
string(16) "entry_categories"
[4]=>
string(22) "bookmark_me-1239359401"
[5]=>
string(14) "entry_comments"
}
["the_header"]=>
array(4) {
[0]=>
string(6) "header"
[1]=>
string(6) "navbar"
[2]=>
string(12) "header_boxes"
[3]=>
string(14) "text-402142561"
}
["before_the_entries"]=>
array(1) {
[0]=>
string(15) "archives_header"
}
["after_the_entries"]=>
array(1) {
[0]=>
string(15) "next_prev_posts"
}
["the_footer"]=>
array(2) {
[0]=>
string(12) "footer_boxes"
[1]=>
string(6) "footer"
}
["sidebar-1"]=>
array(4) {
[0]=>
string(18) "nav_menu-402143571"
[1]=>
string(22) "fuzzy-widget-402143751"
[2]=>
string(20) "categories-402145421"
[3]=>
string(18) "archives-402145422"
}
["sidebar-2"]=>
array(2) {
[0]=>
string(22) "subscribe_me-406661311"
[1]=>
string(18) "calendar-402143881"
}
["inline_widgets"]=>
array(4) {
[0]=>
string(28) "newsletter_widget-1239359402"
[1]=>
string(23) "contact_form-1239359401"
[2]=>
string(9) "silo_stub"
[3]=>
string(8) "silo_map"
}
["feed_widgets"]=>
array(0) {
}
["top_sidebar"]=>
array(1) {
[0]=>
string(14) "text-402140811"
}
["bottom_sidebar"]=>
array(1) {
[0]=>
string(14) "text-402141571"
}
["array_version"]=>
int(3)
}
}}}
after browsing widgets:
{{{
array(3) {
["sidebar-1"]=>
array(6) {
[0]=>
string(12) "entry_header"
[1]=>
string(13) "entry_content"
[2]=>
string(10) "entry_tags"
[3]=>
string(16) "entry_categories"
[4]=>
string(22) "bookmark_me-1239359401"
[5]=>
string(14) "entry_comments"
}
["wp_inactive_widgets"]=>
array(28) {
[0]=>
string(7) "pages-2"
[1]=>
string(10) "calendar-2"
[2]=>
string(10) "archives-2"
[3]=>
string(18) "archives-402145422"
[4]=>
string(7) "links-2"
[5]=>
string(6) "meta-2"
[6]=>
string(8) "search-2"
[7]=>
string(6) "text-2"
[8]=>
string(12) "categories-2"
[9]=>
string(20) "categories-402145421"
[10]=>
string(5) "rss-2"
[11]=>
string(11) "tag_cloud-2"
[12]=>
string(6) "header"
[13]=>
string(6) "navbar"
[14]=>
string(12) "header_boxes"
[15]=>
string(14) "text-402142561"
[16]=>
string(15) "archives_header"
[17]=>
string(15) "next_prev_posts"
[18]=>
string(12) "footer_boxes"
[19]=>
string(6) "footer"
[20]=>
string(22) "subscribe_me-406661311"
[21]=>
string(18) "calendar-402143881"
[22]=>
string(28) "newsletter_widget-1239359402"
[23]=>
string(23) "contact_form-1239359401"
[24]=>
string(9) "silo_stub"
[25]=>
string(8) "silo_map"
[26]=>
string(14) "text-402140811"
[27]=>
string(14) "text-402141571"
}
["array_version"]=>
int(3)
}
Expected: sidebars_widgets remains untouched. And internally, WP manages
an wp_inactive_widgets sidebar with those or something like that. Or it
should at least move widgets around in the correct sidebar if one exists
with the same name.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9695#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list