WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/04/2010 05:23:29 PM (10 years ago)
Author:
ryan
Message:

Introduce home_url(). Props Denis-de-Bernardy, hakre. see #9008

File:
1 edited

Legend:

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

    r12408 r12598  
    945945
    946946    $lp  = parse_url($test);
    947     $wpp = parse_url(get_option('home'));
     947    $wpp = parse_url(home_url());
    948948
    949949    $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host']), isset($lp['host']) ? $lp['host'] : '');
Note: See TracChangeset for help on using the changeset viewer.