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:
parent
aa0e750a9f
commit
99f3141859
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue