← All changes
|
jetpack_vendor/automattic/jetpack-publicize/src/rest-api/class-base-controller.php
+4
-0
16.3-a.5
→
16.3-beta
View file →
| @@ -13,8 +13,12 @@ | ||
| 13 | 13 | use WP_REST_Controller; |
| 14 | 14 | use WP_REST_Request; |
| 15 | 15 | use WP_REST_Response; |
| 16 | 16 | |
| 17 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 18 | + exit( 0 ); | |
| 19 | +} | |
| 20 | + | |
| 17 | 21 | /** |
| 18 | 22 | * Base controller for Publicize endpoints. |
| 19 | 23 | */ |
| 20 | 24 | abstract class Base_Controller extends WP_REST_Controller { |