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
This commit is contained in:
parent
ed9d53ec1f
commit
ef382e6aaf
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue