Changeset 36445
- Timestamp:
- 02/02/2016 04:23:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r36444 r36445 1350 1350 1351 1351 $wpp = parse_url(home_url()); 1352 $site = parse_url( site_url() );1353 1352 1354 1353 /** … … 1360 1359 * @param bool|string $host The parsed host; empty if not isset. 1361 1360 */ 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'])) ) 1365 1364 $location = $default; 1366 1365 … … 2485 2484 } 2486 2485 endif; 2486
Note: See TracChangeset
for help on using the changeset viewer.