Changeset 41555 for trunk/src/wp-includes/theme.php
- Timestamp:
- 09/21/2017 06:45:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r41353 r41555 682 682 $_sidebars_widgets = null; 683 683 if ( 'wp_ajax_customize_save' === current_action() ) { 684 $_sidebars_widgets = $wp_customize->post_value( $wp_customize->get_setting( 'old_sidebars_widgets_data' ) ); 684 $old_sidebars_widgets_data_setting = $wp_customize->get_setting( 'old_sidebars_widgets_data' ); 685 if ( $old_sidebars_widgets_data_setting ) { 686 $_sidebars_widgets = $wp_customize->post_value( $old_sidebars_widgets_data_setting ); 687 } 685 688 } elseif ( is_array( $sidebars_widgets ) ) { 686 689 $_sidebars_widgets = $sidebars_widgets; … … 688 691 689 692 if ( is_array( $_sidebars_widgets ) ) { 690 set_theme_mod( 'sidebars_widgets', array( 'time' => time(), 'data' => $_sidebars_widgets ));693 set_theme_mod( 'sidebars_widgets', $_sidebars_widgets ); 691 694 } 692 695
Note: See TracChangeset
for help on using the changeset viewer.