Skip to content

Commit 8043638

Browse files
committed
HTTP: Don't treat localhost as same host by default.
Built from https://develop.svn.wordpress.org/trunk@42894 git-svn-id: http://core.svn.wordpress.org/trunk@42724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 31a4369 commit 8043638

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: wp-includes/http.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ function wp_http_validate_url( $url ) {
543543
$parsed_home = @parse_url( get_option( 'home' ) );
544544

545545
if ( isset( $parsed_home['host'] ) ) {
546-
$same_host = ( strtolower( $parsed_home['host'] ) === strtolower( $parsed_url['host'] ) || 'localhost' === strtolower( $parsed_url['host'] ) );
546+
$same_host = strtolower( $parsed_home['host'] ) === strtolower( $parsed_url['host'] );
547547
} else {
548548
$same_host = false;
549549
}

Diff for: wp-includes/version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @global string $wp_version
66
*/
7-
$wp_version = '5.0-alpha-42893';
7+
$wp_version = '5.0-alpha-42894';
88

99
/**
1010
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)