← All changes
|
json-endpoints/jetpack/class.jetpack-json-api-maybe-auto-update-endpoint.php
+6
-1
12.2.3
→
16.3-a.5
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 | * Auto update endpoint class. |
| 5 | 9 | * |
| 6 | 10 | * POST /sites/%s/maybe_auto_update |
| 11 | + * | |
| 12 | + * @phan-constructor-used-for-side-effects | |
| 7 | 13 | */ |
| 8 | 14 | class Jetpack_JSON_API_Maybe_Auto_Update_Endpoint extends Jetpack_JSON_API_Endpoint { |
| 9 | 15 | |
| 10 | 16 | /** |
| @@ -52,6 +58,5 @@ | ||
| 52 | 58 | */ |
| 53 | 59 | public function get_update_results( $results ) { |
| 54 | 60 | $this->update_results = $results; |
| 55 | 61 | } |
| 56 | - | |
| 57 | 62 | } |