From 2e1b8980772ce53dd40422914ab1133996b00ee4 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Wed, 21 Oct 2015 23:05:43 +0000 Subject: [PATCH] Revert [34352], pending investigation. See #34299 git-svn-id: https://develop.svn.wordpress.org/trunk@35349 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/rest-functions.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/wp-includes/rest-api/rest-functions.php b/src/wp-includes/rest-api/rest-functions.php index d80e83985e..947efce90e 100644 --- a/src/wp-includes/rest-api/rest-functions.php +++ b/src/wp-includes/rest-api/rest-functions.php @@ -254,13 +254,6 @@ function get_rest_url( $blog_id = null, $path = '/', $scheme = 'rest' ) { $url = add_query_arg( 'rest_route', $path, $url ); } - if ( is_ssl() ) { - // If the current host is the same as the REST URL host, force the REST URL scheme to HTTPS - if ( $_SERVER['SERVER_NAME'] === parse_url( get_home_url( $blog_id ), PHP_URL_HOST ) ) { - $url = set_url_scheme( $url, 'https' ); - } - } - /** * Filter the REST URL. *