← All changes
|
json-endpoints/jetpack/class.jetpack-json-api-plugins-get-endpoint.php
+6
-0
12.2.3
→
16.3-a.1
View file →
| @@ -1,6 +1,10 @@ | ||
| 1 | 1 | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 | 2 | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit( 0 ); | |
| 5 | +} | |
| 6 | + | |
| 3 | 7 | /** |
| 4 | 8 | * JSON API plugins get endpoint. |
| 5 | 9 | */ |
| 6 | 10 | new Jetpack_JSON_API_Plugins_Get_Endpoint( |
| @@ -31,8 +35,10 @@ | ||
| 31 | 35 | * |
| 32 | 36 | * GET /sites/%s/plugins/%s |
| 33 | 37 | * |
| 34 | 38 | * No v1.2 version since it is .com only |
| 39 | + * | |
| 40 | + * @phan-constructor-used-for-side-effects | |
| 35 | 41 | */ |
| 36 | 42 | class Jetpack_JSON_API_Plugins_Get_Endpoint extends Jetpack_JSON_API_Plugins_Endpoint { |
| 37 | 43 | /** |
| 38 | 44 | * Needed capabilities. |