← All changes
|
json-endpoints/jetpack/class.jetpack-json-api-themes-install-endpoint.php
+9
-3
13.2.4
→
16.3-a.5
View file →
| @@ -1,16 +1,22 @@ | ||
| 1 | 1 | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 | 2 | |
| 3 | +use Automattic\Jetpack\Automatic_Install_Skin; | |
| 4 | +use Automattic\Jetpack\Connection\Client; | |
| 5 | + | |
| 6 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 7 | + exit( 0 ); | |
| 8 | +} | |
| 9 | + | |
| 3 | 10 | require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
| 4 | 11 | require_once ABSPATH . 'wp-admin/includes/file.php'; |
| 5 | 12 | |
| 6 | -use Automattic\Jetpack\Automatic_Install_Skin; | |
| 7 | -use Automattic\Jetpack\Connection\Client; | |
| 8 | - | |
| 9 | 13 | /** |
| 10 | 14 | * Themes install endpoint class. |
| 11 | 15 | * |
| 12 | 16 | * POST /sites/%s/themes/%s/install |
| 17 | + * | |
| 18 | + * @phan-constructor-used-for-side-effects | |
| 13 | 19 | */ |
| 14 | 20 | class Jetpack_JSON_API_Themes_Install_Endpoint extends Jetpack_JSON_API_Themes_Endpoint { |
| 15 | 21 | |
| 16 | 22 | /** |