From 7212a28e17927cecc42770bc9fd715c768c4913e Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 10 Jun 2005 23:13:19 +0000 Subject: [PATCH] Fix for get_author_link, fixes #1430 git-svn-id: https://develop.svn.wordpress.org/trunk@2626 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-author.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/template-functions-author.php b/wp-includes/template-functions-author.php index e3f0d459be..d2ae36bbd0 100644 --- a/wp-includes/template-functions-author.php +++ b/wp-includes/template-functions-author.php @@ -131,7 +131,7 @@ function get_author_link($echo = false, $author_id, $author_nicename) { $file = get_settings('home') . '/'; $link = $file . '?author=' . $auth_ID; } 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 = get_settings('home') . trailingslashit($link); }