Commit c703f0f7 authored by Sergey Biryukov's avatar Sergey Biryukov
Browse files

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: https://core.svn.wordpress.org/trunk@48370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent b8432d63
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {
+1 −1
Original line number Diff line number Diff line
@@ -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.