mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
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
This commit is contained in:
parent
43a3b3b65d
commit
6dacb11d46
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user