PluginProbe
Metricool – Social media and site statistics / 2.1.1
Metricool – Social media and site statistics v2.1.1
2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
← All changes | app/Http/Middleware/HasMetricoolBlogId.php +3 -3 2.0.2 → 2.1.1 View file →
@@ -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 }