| @@ -21,17 +21,17 @@ | ||
| 21 | 21 | { |
| 22 | 22 | $this->metricool = $metricool; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - public function handle(\WP_REST_Request $request): ?\WP_REST_Response | |
| 25 | + public function handle(\WP_REST_Request $request, callable $next) | |
| 26 | 26 | { |
| 27 | 27 | if (!$this->metricool->hasBlogId()) { |
| 28 | 28 | return $this->sendHttpErrorResponse( |
| 29 | - 'Brand / blog id missing', | |
| 29 | + 'Blog id missing', | |
| 30 | 30 | null, |
| 31 | 31 | 403 |
| 32 | 32 | ); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - return null; | |
| 35 | + return $next($request); | |
| 36 | 36 | } |
| 37 | 37 | } |