diff --git a/includes/coming-soon.php b/includes/coming-soon.php index ec4f0dd..0403a5b 100644 --- a/includes/coming-soon.php +++ b/includes/coming-soon.php @@ -156,6 +156,8 @@ public function coming_soon_subscribe() { if ( ! is_callable( array( $jetpack, 'subscribe' ) ) ) { $a_response['message'] = __( 'Jetpack encountered an error with the subscription', 'newfold-module-coming-soon' ); $a_response['status'] = 'jetpack-error'; + wp_send_json( $a_response ); + wp_die(); } // Get JetPack response and subscribe email if response is true