Ticket #5114: 5114.2.diff
| File 5114.2.diff, 0.6 kB (added by markjaquith, 1 year ago) |
|---|
-
wp-includes/pluggable.php
old new 435 435 $lp = parse_url($location); 436 436 $wpp = parse_url(get_option('home')); 437 437 438 $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host'] ), $lp['host']);438 $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host'], strtolower($wpp['host'])), $lp['host']); 439 439 440 440 if ( isset($lp['host']) && !in_array($lp['host'], $allowed_hosts) ) 441 441 $location = get_option('siteurl') . '/wp-admin/';
