← All changes
|
_inc/lib/core-api/wpcom-endpoints/gutenberg-available-extensions.php
+5
-1
12.2.3
→
16.3-a.1
View file →
| @@ -5,13 +5,17 @@ | ||
| 5 | 5 | * |
| 6 | 6 | * @package automattic/jetpack |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 10 | + exit( 0 ); | |
| 11 | +} | |
| 12 | + | |
| 9 | 13 | /** |
| 10 | 14 | * Gutenberg: List Available Gutenberg Extensions (Blocks and Plugins) |
| 11 | 15 | * |
| 12 | 16 | * [ |
| 13 | - * { # Availabilty Object. See schema for more detail. | |
| 17 | + * { # Availability Object. See schema for more detail. | |
| 14 | 18 | * available: (boolean) Whether the extension is available |
| 15 | 19 | * unavailable_reason: (string) Reason for the extension not being available |
| 16 | 20 | * }, |
| 17 | 21 | * ... |