Changeset 41205 for trunk/src/wp-includes/class-wp-customize-widgets.php
- Timestamp:
- 08/02/2017 05:34:32 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r41168 r41205 212 212 $settings = $this->manager->add_dynamic_settings( array_unique( $widget_setting_ids ) ); 213 213 214 /* 215 * Preview settings right away so that widgets and sidebars will get registered properly. 216 * But don't do this if a customize_save because this will cause WP to think there is nothing 217 * changed that needs to be saved. 218 */ 219 if ( ! $this->manager->doing_ajax( 'customize_save' ) ) { 214 if ( $this->manager->settings_previewed() ) { 220 215 foreach ( $settings as $setting ) { 221 216 $setting->preview(); … … 507 502 } 508 503 509 if ( ! $this->manager->doing_ajax( 'customize_save') ) {504 if ( $this->manager->settings_previewed() ) { 510 505 foreach ( $new_setting_ids as $new_setting_id ) { 511 506 $this->manager->get_setting( $new_setting_id )->preview();
Note: See TracChangeset
for help on using the changeset viewer.