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

    r12202 r12598  
    199199
    200200    // www.example.com vs example.com
    201     $user_home = @parse_url(get_option('home'));
     201    $user_home = @parse_url(home_url());
    202202    if ( !empty($user_home['host']) )
    203203        $redirect['host'] = $user_home['host'];
Note: See TracChangeset for help on using the changeset viewer.