From 99f314185936796f4ace07b60369736530e2e270 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 16 Nov 2010 16:09:46 +0000 Subject: [PATCH] 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 --- wp-includes/author-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index ebdc9a4bd..e7b981be4 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -234,7 +234,7 @@ function get_author_posts_url($author_id, $author_nicename = '') { $author_nicename = $user->user_nicename; } $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);