From 809da11403fa06442e2da8248cf643c38cf47971 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 15 May 2012 15:45:40 +0000 Subject: [PATCH] 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 --- wp-includes/customize-controls.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-includes/customize-controls.php b/wp-includes/customize-controls.php index 48fb9cde14..2253829975 100644 --- a/wp-includes/customize-controls.php +++ b/wp-includes/customize-controls.php @@ -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() ),