WordPress.org

Make WordPress Core

Ticket #5114: 5114.2.diff

File 5114.2.diff, 640 bytes (added by markjaquith, 7 years ago)
  • wp-includes/pluggable.php

     
    435435        $lp  = parse_url($location); 
    436436        $wpp = parse_url(get_option('home')); 
    437437 
    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']); 
    439439 
    440440        if ( isset($lp['host']) && !in_array($lp['host'], $allowed_hosts) ) 
    441441                $location = get_option('siteurl') . '/wp-admin/';