← All changes
|
modules/related-posts/abilities/class-related-posts-abilities.php
+4
-0
16.3-a.7
→
16.3-beta
View file →
| @@ -12,8 +12,12 @@ | ||
| 12 | 12 | use Automattic\Jetpack\WP_Abilities\Registrar; |
| 13 | 13 | use Jetpack_RelatedPosts; |
| 14 | 14 | use WP_Error; |
| 15 | 15 | |
| 16 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 17 | + exit( 0 ); | |
| 18 | +} | |
| 19 | + | |
| 16 | 20 | /** |
| 17 | 21 | * Registers Jetpack Related Posts abilities with the WordPress Abilities API. |
| 18 | 22 | * |
| 19 | 23 | * Exposes related-post lookups through the standard `wp-abilities/v1` REST |