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

git-svn-id: https://develop.svn.wordpress.org/trunk@20793 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-05-15 15:45:40 +00:00
parent 2e1a9bc4a4
commit b5156f1b47
1 changed files with 1 additions and 3 deletions

View File

@ -92,11 +92,9 @@ do_action( 'customize_controls_print_scripts' );
do_action( 'customize_controls_print_footer_scripts' );
// Check current scheme and load the preview with the same scheme
$scheme = is_ssl() ? 'https' : 'http';
$settings = array(
'theme' => $this->get_stylesheet(),
'preview' => esc_url( home_url( '/', $scheme ) ),
'preview' => esc_url( home_url( '/' ) ),
'settings' => array(),
'controls' => array(),
'parent' => esc_url( admin_url() ),