← All changes
|
json-endpoints/class.wpcom-json-api-get-autosave-v1-1-endpoint.php
+6
-0
12.2.3
→
16.3-beta
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_Get_Autosave_v1_1_Endpoint( |
| 9 | 13 | array( |
| 10 | 14 | 'description' => 'Get the most recent autosave for a post.', |
| 11 | 15 | 'group' => '__do_not_document', |
| @@ -34,8 +38,10 @@ | ||
| 34 | 38 | |
| 35 | 39 | // phpcs:disable PEAR.NamingConventions.ValidClassName.Invalid |
| 36 | 40 | /** |
| 37 | 41 | * Class WPCOM_JSON_API_Get_Autosave_v1_1_Endpoint |
| 42 | + * | |
| 43 | + * @phan-constructor-used-for-side-effects | |
| 38 | 44 | */ |
| 39 | 45 | class WPCOM_JSON_API_Get_Autosave_v1_1_Endpoint extends WPCOM_JSON_API_Post_v1_1_Endpoint { |
| 40 | 46 | /** |
| 41 | 47 | * Get Autosave callback |