From 31f63b8b52e6b4ff8b97b7c4fd2e473f258d237c Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 30 Oct 2015 21:38:36 +0000 Subject: [PATCH] Remove trailing whitespace introduced in [35351]. Props rachelbaker Unprops johnbillion Fixes #34512 git-svn-id: https://develop.svn.wordpress.org/trunk@35462 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/rest-functions.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/rest-api/rest-functions.php b/src/wp-includes/rest-api/rest-functions.php index 90bb2e7305..f4bc96df51 100644 --- a/src/wp-includes/rest-api/rest-functions.php +++ b/src/wp-includes/rest-api/rest-functions.php @@ -254,12 +254,12 @@ 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' ); - } - } + 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.