Make WordPress Core

Ticket #40146: 40146.diff

File 40146.diff, 903 bytes (added by dlh, 8 years ago)
  • src/wp-includes/class-wp-customize-manager.php

     
    14191419                        }
    14201420                }
    14211421
     1422                $current_theme_supports_starter_content = current_theme_supports( 'starter-content' );
     1423
    14221424                if ( ! $args['exclude_changeset'] ) {
    14231425                        foreach ( $this->changeset_data() as $setting_id => $setting_params ) {
    14241426                                if ( ! array_key_exists( 'value', $setting_params ) ) {
    14251427                                        continue;
    14261428                                }
     1429                                if ( ! empty( $setting_params['starter_content'] ) && ! $current_theme_supports_starter_content ) {
     1430                                        continue;
     1431                                }
    14271432                                if ( isset( $setting_params['type'] ) && 'theme_mod' === $setting_params['type'] ) {
    14281433
    14291434                                        // Ensure that theme mods values are only used if they were saved under the current theme.