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
This commit is contained in:
Dominik Schilling (ocean90) 2018-04-03 14:59:44 +00:00
parent 768f303004
commit b3943d5742
1 changed files with 1 additions and 1 deletions

View File

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