From dc512828441c92192156c2b7c5218e1e2200e2f7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 21 Jun 2021 06:06:57 +0000 Subject: [PATCH] Users: Escape `get_author_posts_url()` link in `wp_list_authors()`. This is consistent with `get_the_author_posts_link()`. Props chintan1896. Fixes #50698. Built from https://develop.svn.wordpress.org/trunk@51190 git-svn-id: http://core.svn.wordpress.org/trunk@50799 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/author-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index ddfa202ebf..2911366f03 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -474,7 +474,7 @@ function wp_list_authors( $args = '' ) { $link = sprintf( '%3$s', - 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 diff --git a/wp-includes/version.php b/wp-includes/version.php index 83284d315f..583002332d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-beta2-51189'; +$wp_version = '5.8-beta2-51190'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.