From 6dacb11d46ee2830ddc9c01c9cf60a622bb1d1e2 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@16401 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ebdc9a4bdb..e7b981be48 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);