Users: Escape get_author_posts_url() link in wp_list_authors().

This is consistent with `get_the_author_posts_link()`.

Props chintan1896.
Fixes #50698.

git-svn-id: https://develop.svn.wordpress.org/trunk@51190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2021-06-21 06:05:30 +00:00
parent 63f4733ead
commit d0e8b81cd8

View File

@ -474,7 +474,7 @@ function wp_list_authors( $args = '' ) {
$link = sprintf(
'<a href="%1$s" title="%2$s">%3$s</a>',
get_author_posts_url( $author->ID, $author->user_nicename ),
esc_url( get_author_posts_url( $author->ID, $author->user_nicename ) ),
/* translators: %s: Author's display name. */
esc_attr( sprintf( __( 'Posts by %s' ), $author->display_name ) ),
$name