diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 719754985a..351d64a13a 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -1913,7 +1913,7 @@ function get_home_url( $blog_id = null, $path = '', $scheme = null ) { } if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ) ) ) { - if ( is_ssl() && ! is_admin() ) + if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $GLOBALS['pagenow'] ) $scheme = 'https'; else $scheme = parse_url( $url, PHP_URL_SCHEME );