Changeset 35792
- Timestamp:
- 12/06/2015 09:16:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r35735 r35792 1349 1349 1350 1350 $wpp = parse_url(home_url()); 1351 $site = parse_url( site_url() ); 1351 1352 1352 1353 /** … … 1358 1359 * @param bool|string $host The parsed host; empty if not isset. 1359 1360 */ 1360 $allowed_hosts = (array) apply_filters( 'allowed_redirect_hosts', array( $wpp['host']), isset($lp['host']) ? $lp['host'] : '' );1361 1362 if ( isset($lp['host']) && ( ! in_array($lp['host'], $allowed_hosts) && $lp['host'] != strtolower($wpp['host'])) )1361 $allowed_hosts = (array) apply_filters( 'allowed_redirect_hosts', array( $wpp['host'], $site['host'] ), isset( $lp['host'] ) ? $lp['host'] : '' ); 1362 1363 if ( isset($lp['host']) && ( ! in_array( $lp['host'], $allowed_hosts ) && ( $lp['host'] != strtolower( $wpp['host'] ) || $lp['host'] != strtolower( $site['host'] ) ) ) ) 1363 1364 $location = $default; 1364 1365 … … 2481 2482 } 2482 2483 endif; 2483
Note: See TracChangeset
for help on using the changeset viewer.