Ticket #40146: 40146.diff
File 40146.diff, 903 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-customize-manager.php
1419 1419 } 1420 1420 } 1421 1421 1422 $current_theme_supports_starter_content = current_theme_supports( 'starter-content' ); 1423 1422 1424 if ( ! $args['exclude_changeset'] ) { 1423 1425 foreach ( $this->changeset_data() as $setting_id => $setting_params ) { 1424 1426 if ( ! array_key_exists( 'value', $setting_params ) ) { 1425 1427 continue; 1426 1428 } 1429 if ( ! empty( $setting_params['starter_content'] ) && ! $current_theme_supports_starter_content ) { 1430 continue; 1431 } 1427 1432 if ( isset( $setting_params['type'] ) && 'theme_mod' === $setting_params['type'] ) { 1428 1433 1429 1434 // Ensure that theme mods values are only used if they were saved under the current theme.