← All changes
|
json-endpoints/class.wpcom-json-api-get-taxonomy-endpoint.php
+6
-0
13.3.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 | new WPCOM_JSON_API_Get_Taxonomy_Endpoint( |
| 4 | 8 | array( |
| 5 | 9 | 'description' => 'Get information about a single category.', |
| 6 | 10 | 'group' => 'taxonomy', |
| @@ -39,8 +43,10 @@ | ||
| 39 | 43 | ); |
| 40 | 44 | |
| 41 | 45 | /** |
| 42 | 46 | * GET Taxonomy endpoint class. |
| 47 | + * | |
| 48 | + * @phan-constructor-used-for-side-effects | |
| 43 | 49 | */ |
| 44 | 50 | class WPCOM_JSON_API_Get_Taxonomy_Endpoint extends WPCOM_JSON_API_Taxonomy_Endpoint { |
| 45 | 51 | /** |
| 46 | 52 | * |