← All changes
|
json-endpoints/class.wpcom-json-api-autosave-post-v1-1-endpoint.php
+6
-0
12.1.3
→
16.3-a.7
View file →
| @@ -4,8 +4,12 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @package automattic/jetpack |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 9 | + exit( 0 ); | |
| 10 | +} | |
| 11 | + | |
| 8 | 12 | new WPCOM_JSON_API_Autosave_Post_v1_1_Endpoint( |
| 9 | 13 | array( |
| 10 | 14 | 'description' => 'Create a post autosave.', |
| 11 | 15 | 'group' => '__do_not_document', |
| @@ -47,8 +51,10 @@ | ||
| 47 | 51 | // phpcs:disable PEAR.NamingConventions.ValidClassName.Invalid |
| 48 | 52 | |
| 49 | 53 | /** |
| 50 | 54 | * Class WPCOM_JSON_API_Autosave_Post_v1_1_Endpoint |
| 55 | + * | |
| 56 | + * @phan-constructor-used-for-side-effects | |
| 51 | 57 | */ |
| 52 | 58 | class WPCOM_JSON_API_Autosave_Post_v1_1_Endpoint extends WPCOM_JSON_API_Post_v1_1_Endpoint { |
| 53 | 59 | |
| 54 | 60 | /** |