'<p>%s</p><p>%s<br>%s</p>',
__( 'When testing the REST API, an unexpected result was returned:'
),
sprintf( // translators: %s: The REST API URL.
__( 'REST API Endpoint: %s'
),
$url ),
sprintf( // translators: 1: The WordPress error code. 2: The HTTP status code error message.
__( 'REST API Response: (%1$s) %2$s'
),
wp_remote_retrieve_response_code( $r ),
wp_remote_retrieve_response_message( $r ) ) );
} else { $json =
json_decode( wp_remote_retrieve_body( $r ), true
);
if ( false !==
$json && !
isset( $json['capabilities'
] ) ) { $result['status'
] = 'recommended';
$result['label'
] =
__( 'The REST API did not behave correctly'
);
$result['description'
] .=
sprintf(