Skip to content

Commit

Permalink
properly bail if jetpack error encountered
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Mar 22, 2022
1 parent e2bcc44 commit d6ec821
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/coming-soon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6ec821

Please sign in to comment.