Make WordPress Core

Changeset 6145


Ignore:
Timestamp:
09/20/2007 09:53:42 PM (17 years ago)
Author:
markjaquith
Message:

Pass the attempted redirect host as a second parameter in the allowed_redirect_hosts filter. props mdawaffe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r6138 r6145  
    435435    $wpp = parse_url(get_option('home'));
    436436
    437     $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host']));
     437    $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host']), $lp['host']);
    438438
    439439    if ( isset($lp['host']) && !in_array($lp['host'], $allowed_hosts) )
Note: See TracChangeset for help on using the changeset viewer.