Make WordPress Core

Changeset 36445


Ignore:
Timestamp:
02/02/2016 04:23:15 PM (9 years ago)
Author:
jorbin
Message:

Revert [35792]

This causes a regression and causes redirects to potentially fail.

See #5114 #34028
props ocean90

File:
1 edited

Legend:

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

    r36444 r36445  
    13501350
    13511351    $wpp = parse_url(home_url());
    1352     $site = parse_url( site_url() );
    13531352
    13541353    /**
     
    13601359     * @param bool|string $host  The parsed host; empty if not isset.
    13611360     */
    1362     $allowed_hosts = (array) apply_filters( 'allowed_redirect_hosts', array( $wpp['host'], $site['host'] ), isset( $lp['host'] ) ? $lp['host'] : '' );
    1363 
    1364     if ( isset($lp['host']) && ( ! in_array( $lp['host'], $allowed_hosts ) && ( $lp['host'] != strtolower( $wpp['host'] ) || $lp['host'] != strtolower( $site['host'] ) ) ) )
     1361    $allowed_hosts = (array) apply_filters( 'allowed_redirect_hosts', array($wpp['host']), isset($lp['host']) ? $lp['host'] : '' );
     1362
     1363    if ( isset($lp['host']) && ( !in_array($lp['host'], $allowed_hosts) && $lp['host'] != strtolower($wpp['host'])) )
    13651364        $location = $default;
    13661365
     
    24852484}
    24862485endif;
     2486
Note: See TracChangeset for help on using the changeset viewer.