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:
parent
768f303004
commit
b3943d5742
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue