← All changes
|
modules/subscriptions/abilities/class-newsletter-abilities.php
+4
-0
16.3-a.7
→
16.3-beta
View file →
| @@ -15,8 +15,12 @@ | ||
| 15 | 15 | use Automattic\Jetpack\WP_Abilities\Registrar; |
| 16 | 16 | use Jetpack; |
| 17 | 17 | use Jetpack_Options; |
| 18 | 18 | |
| 19 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 20 | + exit( 0 ); | |
| 21 | +} | |
| 22 | + | |
| 19 | 23 | // The Subscriptions module doesn't load its Settings helpers eagerly. Pull it |
| 20 | 24 | // in here so `Subscriptions_Settings::$default_reply_to` and |
| 21 | 25 | // `is_valid_reply_to()` are resolvable when the abilities run. |
| 22 | 26 | require_once __DIR__ . '/../class-settings.php'; |