WordPress.org

Make WordPress Core

Changeset 20793


Ignore:
Timestamp:
05/15/12 15:45:40 (3 years ago)
Author:
ryan
Message:

Don't force frontend scheme to match backend. This fails if the frontend doesn't have proper SSL certs. Access-Control-Allow-Origin handles this without the need to make the schemes match. see #20507

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/customize-controls.php

    r20791 r20793  
    9393    do_action( 'customize_controls_print_footer_scripts' ); 
    9494 
    95     // Check current scheme and load the preview with the same scheme 
    96     $scheme = is_ssl() ? 'https' : 'http'; 
    9795    $settings = array( 
    9896        'theme'    => $this->get_stylesheet(), 
    99         'preview'  => esc_url( home_url( '/', $scheme ) ), 
     97        'preview'  => esc_url( home_url( '/' ) ), 
    10098        'settings' => array(), 
    10199        'controls' => array(), 
Note: See TracChangeset for help on using the changeset viewer.