From ef382e6aafaf4b826e8f60fec4bb826c9612da3e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 25 Jul 2020 15:38:06 +0000 Subject: [PATCH] Site Health: Escape the displayed result of the request in REST API availability test. Props siliconforks, gisselfeldt. Fixes #50588. Built from https://develop.svn.wordpress.org/trunk@48608 git-svn-id: http://core.svn.wordpress.org/trunk@48370 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-site-health.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index d0de043789..f20bc947c3 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/wp-admin/includes/class-wp-site-health.php @@ -1969,7 +1969,7 @@ class WP_Site_Health { /* translators: 1: The HTTP error code. 2: The HTTP error message. */ __( 'The REST API call gave the following unexpected result: (%1$d) %2$s.' ), wp_remote_retrieve_response_code( $r ), - wp_remote_retrieve_body( $r ) + esc_html( wp_remote_retrieve_body( $r ) ) ) ); } else { diff --git a/wp-includes/version.php b/wp-includes/version.php index e16d0ed1ea..97d0466987 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-beta3-48607'; +$wp_version = '5.5-beta3-48608'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.