10]); $code = is_wp_error($response) ? 0 : (int) wp_remote_retrieve_response_code($response); $body = is_wp_error($response) ? '' : (string) wp_remote_retrieve_body($response); return RestApiExposureScorer::score($code, $body, $endpoint); } catch (\Throwable $e) { return new CheckResult( 'rest_api_exposure', 'skip', 3, 3, 'info', ['error' => $e->getMessage()], 'Vérification ignorée (exception interne) : ' . $e->getMessage() ); } } }