WordPress.org

Make WordPress Core

Changeset 42894


Ignore:
Timestamp:
04/03/2018 02:59:44 PM (7 weeks ago)
Author:
ocean90
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/http.php

    r42678 r42894  
    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;
Note: See TracChangeset for help on using the changeset viewer.