Ticket #34164: 34164.1.diff
File 34164.1.diff, 655 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/http.php
523 523 524 524 $parsed_home = @parse_url( get_option( 'home' ) ); 525 525 526 $same_host = strtolower( $parsed_home['host'] ) === strtolower( $parsed_url['host'] ); 526 if ( isset( $parsed_home['host'] ) ) { 527 $same_host = ( strtolower( $parsed_home['host'] ) === strtolower( $parsed_url['host'] ) || 'localhost' === strtolower( $parsed_url['host'] ) ); 528 } else { 529 $same_host = false; 530 } 527 531 528 532 if ( ! $same_host ) { 529 533 $host = trim( $parsed_url['host'], '.' );