// translators: %s: The REST API URL.
__( 'REST API Endpoint: %s'
),
$url ),
sprintf( // translators: 1: The WordPress error code. 2: The WordPress error message.
__( 'REST API Response: (%1$s) %2$s'
),
$r->
get_error_code(),
$r->
get_error_message() ) );
} elseif ( 200 !==
wp_remote_retrieve_response_code( $r ) ) { $result['status'
] = 'recommended';
$result['label'
] =
__( 'The REST API encountered an unexpected result'
);
$result['description'
] .=
sprintf( '<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 ),