| @@ -10,9 +10,8 @@ | ||
| 10 | 10 | |
| 11 | 11 | namespace Parsely\RemoteAPI; |
| 12 | 12 | |
| 13 | 13 | use WP_Error; |
| 14 | -use WP_REST_Request; | |
| 15 | 14 | |
| 16 | 15 | /** |
| 17 | 16 | * Remote API Interface. |
| 18 | 17 | */ |
| @@ -31,11 +30,9 @@ | ||
| 31 | 30 | * Returns whether the endpoint is available for access by the current |
| 32 | 31 | * user. |
| 33 | 32 | * |
| 34 | 33 | * @since 3.14.0 Renamed from `is_user_allowed_to_make_api_call()`. |
| 35 | - * @since 3.16.0 Added the `$request` parameter. | |
| 36 | 34 | * |
| 37 | - * @param WP_REST_Request|null $request The request object. | |
| 38 | 35 | * @return bool |
| 39 | 36 | */ |
| 40 | - public function is_available_to_current_user( $request = null ): bool; | |
| 37 | + public function is_available_to_current_user(): bool; | |
| 41 | 38 | } |