8, 'redirection' => 0, ]); if (is_wp_error($response)) { return new CheckResult( 'author_enumeration', 'skip', 3, 3, 'info', ['error' => $response->get_error_message()], 'Vérification ignorée : ' . $response->get_error_message() ); } $code = (int) wp_remote_retrieve_response_code($response); $location = (string) wp_remote_retrieve_header($response, 'location'); return AuthorEnumerationScorer::score($code, $location); } catch (\Throwable $e) { return new CheckResult( 'author_enumeration', 'skip', 3, 3, 'info', ['error' => $e->getMessage()], 'Vérification ignorée (exception interne) : ' . $e->getMessage() ); } } }