← All changes
|
json-endpoints/class.wpcom-json-api-bulk-delete-post-endpoint.php
+6
-0
12.7.3
→
16.3-a.1
View file →
| @@ -4,8 +4,12 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * Endpoint: /sites/%s/posts/delete |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 9 | + exit( 0 ); | |
| 10 | +} | |
| 11 | + | |
| 8 | 12 | new WPCOM_JSON_API_Bulk_Delete_Post_Endpoint( |
| 9 | 13 | array( |
| 10 | 14 | 'description' => 'Delete multiple posts. Note: If the trash is enabled, this request will send non-trashed posts to the trash. Trashed posts will be permanently deleted.', |
| 11 | 15 | 'group' => 'posts', |
| @@ -41,8 +45,10 @@ | ||
| 41 | 45 | ); |
| 42 | 46 | |
| 43 | 47 | /** |
| 44 | 48 | * Bulk delete post endpoint class. |
| 49 | + * | |
| 50 | + * @phan-constructor-used-for-side-effects | |
| 45 | 51 | */ |
| 46 | 52 | class WPCOM_JSON_API_Bulk_Delete_Post_Endpoint extends WPCOM_JSON_API_Update_Post_v1_1_Endpoint { |
| 47 | 53 | /** |
| 48 | 54 | * |