mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-24 16:31:36 +01:00
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:
parent
d8b1541f91
commit
809da11403
@ -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() ),
|
||||
|
Loading…
Reference in New Issue
Block a user