WordPress.org

Make WordPress Core

Ticket #38557: 38557.4.diff

File 38557.4.diff, 1.5 KB (added by joemcgill, 3 years ago)
  • src/wp-admin/custom-header.php

    diff --git src/wp-admin/custom-header.php src/wp-admin/custom-header.php
    index 9822c9b..5cc64ef 100644
    class Custom_Image_Header { 
    639639</tr>
    640640        <?php endif;
    641641
    642         $default_image = get_theme_support( 'custom-header', 'default-image' );
     642        $default_image = sprintf( get_theme_support( 'custom-header', 'default-image' ), get_template_directory_uri(), get_stylesheet_directory_uri() );
    643643        if ( $default_image && get_header_image() != $default_image ) : ?>
    644644<tr>
    645645<th scope="row"><?php _e( 'Reset Image' ); ?></th>
  • src/wp-includes/class-wp-customize-manager.php

    diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
    index c701364..6e8faf2 100644
    final class WP_Customize_Manager { 
    34393439                ) );
    34403440
    34413441                $this->add_setting( new WP_Customize_Filter_Setting( $this, 'header_image', array(
    3442                         'default'        => get_theme_support( 'custom-header', 'default-image' ),
     3442                        'default'        => sprintf( get_theme_support( 'custom-header', 'default-image' ), get_template_directory_uri(), get_stylesheet_directory_uri() ),
    34433443                        'theme_supports' => 'custom-header',
    34443444                ) ) );
    34453445
    34463446                $this->add_setting( new WP_Customize_Header_Image_Setting( $this, 'header_image_data', array(
    3447                         // 'default'        => get_theme_support( 'custom-header', 'default-image' ),
    34483447                        'theme_supports' => 'custom-header',
    34493448                ) ) );
    34503449