| @@ -55,9 +55,9 @@ | ||
| 55 | 55 | * @param string $endpoint_name Endpoint identifier |
| 56 | 56 | * @param int $user_id User ID (0 for anonymous) |
| 57 | 57 | * @return true|WP_Error True if within limits, WP_Error if exceeded |
| 58 | 58 | */ |
| 59 | - protected function check_rate_limit(string $endpoint_name, int $user_id = 0): bool|WP_Error { | |
| 59 | + protected function check_rate_limit(string $endpoint_name, int $user_id = 0) { | |
| 60 | 60 | // Get user identifier (IP for anonymous, user ID for authenticated) |
| 61 | 61 | $identifier = $user_id > 0 ? "user_{$user_id}" : $this->get_client_ip(); |
| 62 | 62 | |
| 63 | 63 | // Check minute-based rate limit |