Ticket #5114: pluggable.php.diff
File pluggable.php.diff, 665 bytes (added by , 18 years ago) |
---|
-
wp-includes/pluggable.php
435 435 $wpp = parse_url(get_option('home')); 436 436 437 437 $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host']), $lp['host']); 438 $allowed_hosts = array_map('strtolower', $allowed_hosts); 438 439 439 if ( isset($lp['host']) && !in_array( $lp['host'], $allowed_hosts) )440 if ( isset($lp['host']) && !in_array(strtolower($lp['host']), $allowed_hosts) ) 440 441 $location = get_option('siteurl') . '/wp-admin/'; 441 442 442 443 wp_redirect($location, $status);