Use user_trailingslashit in get_author_posts_url(). fixes #15441.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-11-16 16:09:46 +00:00
parent aa0e750a9f
commit 99f3141859
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ function get_author_posts_url($author_id, $author_nicename = '') {
$author_nicename = $user->user_nicename; $author_nicename = $user->user_nicename;
} }
$link = str_replace('%author%', $author_nicename, $link); $link = str_replace('%author%', $author_nicename, $link);
$link = home_url() . trailingslashit($link); $link = home_url( user_trailingslashit( $link ) );
} }
$link = apply_filters('author_link', $link, $author_id, $author_nicename); $link = apply_filters('author_link', $link, $author_id, $author_nicename);