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: http://core.svn.wordpress.org/trunk@20793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2012-05-15 15:45:40 +00:00
parent d8b1541f91
commit 809da11403

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() ),