| @@ -11,9 +11,8 @@ | ||
| 11 | 11 | namespace Parsely\RemoteAPI; |
| 12 | 12 | |
| 13 | 13 | use Parsely\Endpoints\Base_Endpoint; |
| 14 | 14 | use Parsely\Parsely; |
| 15 | -use WP_REST_Request; | |
| 16 | 15 | |
| 17 | 16 | /** |
| 18 | 17 | * Class for Analytics Post Detail API (`/analytics/post/detail`). |
| 19 | 18 | * |
| @@ -28,14 +27,12 @@ | ||
| 28 | 27 | * Returns whether the endpoint is available for access by the current |
| 29 | 28 | * user. |
| 30 | 29 | * |
| 31 | 30 | * @since 3.14.0 |
| 32 | - * @since 3.16.0 Added the `$request` parameter. | |
| 33 | 31 | * |
| 34 | - * @param WP_REST_Request|null $request The request object. | |
| 35 | 32 | * @return bool |
| 36 | 33 | */ |
| 37 | - public function is_available_to_current_user( $request = null ): bool { | |
| 34 | + public function is_available_to_current_user(): bool { | |
| 38 | 35 | return current_user_can( |
| 39 | 36 | // phpcs:ignore WordPress.WP.Capabilities.Undetermined |
| 40 | 37 | $this->apply_capability_filters( |
| 41 | 38 | Base_Endpoint::DEFAULT_ACCESS_CAPABILITY |