← All changes
|
json-endpoints/jetpack/class.jetpack-json-api-core-endpoint.php
+6
-1
12.2.3
→
16.3-a.5
View file →
| @@ -1,11 +1,17 @@ | ||
| 1 | 1 | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 | 2 | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit( 0 ); | |
| 5 | +} | |
| 6 | + | |
| 3 | 7 | /** |
| 4 | 8 | * Core endpoint class. |
| 5 | 9 | * |
| 6 | 10 | * POST /sites/%s/core |
| 7 | 11 | * POST /sites/%s/core/update |
| 12 | + * | |
| 13 | + * @phan-constructor-used-for-side-effects | |
| 8 | 14 | */ |
| 9 | 15 | class Jetpack_JSON_API_Core_Endpoint extends Jetpack_JSON_API_Endpoint { |
| 10 | 16 | |
| 11 | 17 | /** |
| @@ -42,6 +48,5 @@ | ||
| 42 | 48 | 'autoupdate' => Jetpack_Options::get_option( 'autoupdate_core', false ), |
| 43 | 49 | 'log' => $this->log, |
| 44 | 50 | ); |
| 45 | 51 | } |
| 46 | - | |
| 47 | 52 | } |