'system.listMethods', 'headers' => ['Content-Type' => 'text/xml'], 'timeout' => 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 XmlRpcScorer::score($code, $body); } catch (\Throwable $e) { return new CheckResult( 'xml_rpc', 'skip', 3, 3, 'info', ['error' => $e->getMessage()], 'Vérification ignorée (exception interne) : ' . $e->getMessage() ); } } }