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:
parent
093147e413
commit
8310c5eeec
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user