← All changes
|
json-endpoints/jetpack/class.jetpack-json-api-themes-active-endpoint.php
+6
-0
13.0.2
→
16.3-a.7
View file →
| @@ -1,9 +1,15 @@ | ||
| 1 | 1 | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 | 2 | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit( 0 ); | |
| 5 | +} | |
| 6 | + | |
| 3 | 7 | /** |
| 4 | 8 | * GET /sites/%s/themes/mine => current theme |
| 5 | 9 | * POST /sites/%s/themes/mine => switch theme |
| 10 | + * | |
| 11 | + * @phan-constructor-used-for-side-effects | |
| 6 | 12 | */ |
| 7 | 13 | class Jetpack_JSON_API_Themes_Active_Endpoint extends Jetpack_JSON_API_Themes_Endpoint { |
| 8 | 14 | |
| 9 | 15 | /** |