PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | admin/endpoints/class-endpoint-statistics.php +5 -3 18.428.5 View file →
@@ -14,9 +14,9 @@
14 14 * The namespace of the REST route.
15 15 *
16 16 * @var string
17 17 */
18 - const REST_NAMESPACE = 'yoast/v1';
18 + public const REST_NAMESPACE = 'yoast/v1';
19 19
20 20 /**
21 21 * The route of the statistics endpoint.
22 22 *
@@ -21,9 +21,9 @@
21 21 * The route of the statistics endpoint.
22 22 *
23 23 * @var string
24 24 */
25 - const ENDPOINT_RETRIEVE = 'statistics';
25 + public const ENDPOINT_RETRIEVE = 'statistics';
26 26
27 27 /**
28 28 * The name of the capability needed to retrieve data using the endpoints.
29 29 *
@@ -28,9 +28,9 @@
28 28 * The name of the capability needed to retrieve data using the endpoints.
29 29 *
30 30 * @var string
31 31 */
32 - const CAPABILITY_RETRIEVE = 'read';
32 + public const CAPABILITY_RETRIEVE = 'read';
33 33
34 34 /**
35 35 * Service to use.
36 36 *
@@ -48,8 +48,10 @@
48 48 }
49 49
50 50 /**
51 51 * Registers the REST routes that are available on the endpoint.
52 + *
53 + * @return void
52 54 */
53 55 public function register() {
54 56 // Register fetch config.
55 57 $route_args = [