WordPress.org

Make WordPress Core

Ticket #20137: 20137.patch

File 20137.patch, 619 bytes (added by ocean90, 8 years ago)
  • wp-includes/customize-controls.php

     
    8080
    8181        do_action( 'customize_controls_print_footer_scripts' );
    8282
     83        // Check current scheme and load the preview with the same scheme
     84        $scheme = is_ssl() ? 'https' : 'http';
    8385        $settings = array(
    84                 'preview' => esc_url( home_url( '/' ) ),
     86                'preview' => esc_url( get_home_url( null, '/', $scheme ) ),
    8587                'values'  => array(),
    8688                'prefix'  => WP_Customize_Setting::name_prefix,
    8789        );