Fix for get_author_link, fixes #1430

git-svn-id: http://svn.automattic.com/wordpress/trunk@2626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-06-10 23:13:19 +00:00
parent cbe1c352ad
commit 1f7552af25
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ function get_author_link($echo = false, $author_id, $author_nicename) {
$file = get_settings('home') . '/'; $file = get_settings('home') . '/';
$link = $file . '?author=' . $auth_ID; $link = $file . '?author=' . $auth_ID;
} else { } else {
if ('' == $author_nicename) $author_nicename = $cache_userdata[$author_id]->author_nicename; if ('' == $author_nicename) $author_nicename = $cache_userdata[$author_id]->user_nicename;
$link = str_replace('%author%', $author_nicename, $link); $link = str_replace('%author%', $author_nicename, $link);
$link = get_settings('home') . trailingslashit($link); $link = get_settings('home') . trailingslashit($link);
} }