From b3943d5742d2062ca180bc064543a6bb24886394 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Tue, 3 Apr 2018 14:59:44 +0000 Subject: [PATCH] HTTP: Don't treat `localhost` as same host by default. git-svn-id: https://develop.svn.wordpress.org/trunk@42894 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/http.php b/src/wp-includes/http.php index bba726748f..2b153aa136 100644 --- a/src/wp-includes/http.php +++ b/src/wp-includes/http.php @@ -543,7 +543,7 @@ function wp_http_validate_url( $url ) { $parsed_home = @parse_url( get_option( 'home' ) ); if ( isset( $parsed_home['host'] ) ) { - $same_host = ( strtolower( $parsed_home['host'] ) === strtolower( $parsed_url['host'] ) || 'localhost' === strtolower( $parsed_url['host'] ) ); + $same_host = strtolower( $parsed_home['host'] ) === strtolower( $parsed_url['host'] ); } else { $same_host = false; }