Fixed: PHP error

This commit is contained in:
Bogdan Rapaić 2020-04-22 18:41:51 +02:00 committed by GitHub
parent 351f3e00f9
commit 2e2d2baf01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1303,7 +1303,7 @@ class MainWP_Child_Server_Information {
} else { } else {
$response_body = wp_remote_retrieve_body( $response ); $response_body = wp_remote_retrieve_body( $response );
if ( false === strstr( $response_body, 'MainWP Test' ) ) { if ( false === strstr( $response_body, 'MainWP Test' ) ) {
$test_result .= sprintf( __( 'Not expected HTTP response body: %s', 'mainwp-child' ), esc_attr( wp_strip_tags( $response_body ) ) ); $test_result .= sprintf( __( 'Not expected HTTP response body: %s', 'mainwp-child' ), esc_attr( wp_strip_all_tags( $response_body ) ) );
} }
} }
if ( empty( $test_result ) ) { if ( empty( $test_result ) ) {