HTTP: Don't treat `localhost` as same host by default.
Merge of [42894] to the 4.9 branch. Built from https://develop.svn.wordpress.org/branches/4.9@42908 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
076fb0ff4d
commit
8cd1a27463
|
@ -530,7 +530,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;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9.5-RC1-42895';
|
||||
$wp_version = '4.9.5-RC1-42908';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue