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/classes.php

    r11930 r12598  
    160160            $req_uri = $req_uri_array[0];
    161161            $self = $_SERVER['PHP_SELF'];
    162             $home_path = parse_url(get_option('home'));
     162            $home_path = parse_url(home_url());
    163163            if ( isset($home_path['path']) )
    164164                $home_path = $home_path['path'];
Note: See TracChangeset for help on using the changeset viewer.