mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user