Site Health: Escape the displayed result of the request in REST API availability test.

Props siliconforks, gisselfeldt.
Fixes #50588.

git-svn-id: https://develop.svn.wordpress.org/trunk@48608 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-07-25 15:36:07 +00:00
parent 093147e413
commit 8310c5eeec

View File

@ -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 {