← All changes
|
json-endpoints/jetpack/class.jetpack-json-api-get-comment-backup-endpoint.php
+6
-1
12.5.2
→
16.3-a.7
View file →
| @@ -1,10 +1,16 @@ | ||
| 1 | 1 | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 | 2 | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit( 0 ); | |
| 5 | +} | |
| 6 | + | |
| 3 | 7 | /** |
| 4 | 8 | * The Get comment backup endpoint class. |
| 5 | 9 | * |
| 6 | 10 | * /sites/%s/comments/%d/backup -> $blog_id, $comment_id |
| 11 | + * | |
| 12 | + * @phan-constructor-used-for-side-effects | |
| 7 | 13 | */ |
| 8 | 14 | class Jetpack_JSON_API_Get_Comment_Backup_Endpoint extends Jetpack_JSON_API_Endpoint { |
| 9 | 15 | |
| 10 | 16 | /** |
| @@ -77,6 +83,5 @@ | ||
| 77 | 83 | 'comment' => $comment, |
| 78 | 84 | 'meta' => is_array( $comment_meta ) ? $comment_meta : array(), |
| 79 | 85 | ); |
| 80 | 86 | } |
| 81 | - | |
| 82 | 87 | } |