WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/03/2018 03:34:19 PM (2 years ago)
Author:
ocean90
Message:

HTTP: Don't treat localhost as same host by default.

Merge of [42894] to the 4.9 branch.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/http.php

    r41573 r42908  
    531531
    532532    if ( isset( $parsed_home['host'] ) ) {
    533         $same_host = ( strtolower( $parsed_home['host'] ) === strtolower( $parsed_url['host'] ) || 'localhost' === strtolower( $parsed_url['host'] ) );
     533        $same_host = strtolower( $parsed_home['host'] ) === strtolower( $parsed_url['host'] );
    534534    } else {
    535535        $same_host = false;
Note: See TracChangeset for help on using the changeset viewer.