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; }