← All changes
|
extensions/blocks/recurring-payments/recurring-payments.php
+4
-0
12.2.3
→
16.3-beta
View file →
| @@ -6,8 +6,12 @@ | ||
| 6 | 6 | * |
| 7 | 7 | * @package automattic/jetpack |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 11 | + exit( 0 ); | |
| 12 | +} | |
| 13 | + | |
| 10 | 14 | if ( ( defined( 'IS_WPCOM' ) && IS_WPCOM ) || Jetpack::is_connection_ready() ) { |
| 11 | 15 | require_once JETPACK__PLUGIN_DIR . '/modules/memberships/class-jetpack-memberships.php'; |
| 12 | 16 | Jetpack_Memberships::get_instance()->register_gutenberg_block(); |
| 13 | 17 | } |