Make WordPress Core


Ignore:
Timestamp:
01/04/2010 05:23:29 PM (15 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/author-template.php

    r12584 r12598  
    210210
    211211    if ( empty($link) ) {
    212         $file = get_option('home') . '/';
     212        $file = home_url() . '/';
    213213        $link = $file . '?author=' . $auth_ID;
    214214    } else {
     
    219219        }
    220220        $link = str_replace('%author%', $author_nicename, $link);
    221         $link = get_option('home') . trailingslashit($link);
     221        $link = home_url() . trailingslashit($link);
    222222    }
    223223
Note: See TracChangeset for help on using the changeset viewer.