Make WordPress Core

Changeset 48608


Ignore:
Timestamp:
07/25/2020 03:36:07 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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

Props siliconforks, gisselfeldt.
Fixes #50588.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r48587 r48608  
    19701970                    __( 'The REST API call gave the following unexpected result: (%1$d) %2$s.' ),
    19711971                    wp_remote_retrieve_response_code( $r ),
    1972                     wp_remote_retrieve_body( $r )
     1972                    esc_html( wp_remote_retrieve_body( $r ) )
    19731973                )
    19741974            );
Note: See TracChangeset for help on using the changeset viewer.