Ticket #27897: 27897.patch
File 27897.patch, 780 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/widgets.php
1421 1421 // time() that sidebars were stored is in $old_sidebars_widgets['time'] 1422 1422 $_sidebars_widgets = $old_sidebars_widgets['data']; 1423 1423 1424 if ( 'customize' === $theme_changed ) {1424 if ( 'customize' !== $theme_changed ) { 1425 1425 remove_theme_mod( 'sidebars_widgets' ); 1426 1426 } 1427 1427 … … 1506 1506 } 1507 1507 1508 1508 $sidebars_widgets['wp_inactive_widgets'] = array_merge($lost_widgets, (array) $sidebars_widgets['wp_inactive_widgets']); 1509 if ( 'customize' === $theme_changed ) {1509 if ( 'customize' !== $theme_changed ) { 1510 1510 wp_set_sidebars_widgets( $sidebars_widgets ); 1511 1511 } 1512 1512