diff --git a/includes/integrations/noptin.php b/includes/integrations/noptin.php index 0e1afc9..3c05b74 100644 --- a/includes/integrations/noptin.php +++ b/includes/integrations/noptin.php @@ -74,8 +74,7 @@ public function verify_token() { $error = $this->is_valid(); if ( is_wp_error( $error ) ) { - echo esc_html( $error->get_error_message() ); - exit; + wp_send_json_error( esc_html( $error->get_error_message() ) ); } } diff --git a/phpcs.xml.dist b/phpcs.xml.dist deleted file mode 100644 index 1f915fc..0000000 --- a/phpcs.xml.dist +++ /dev/null @@ -1,78 +0,0 @@ - - - Generally-applicable sniffs for WordPress plugins - - - - - - - - . - - - - - */node_modules/* - */vendor/* - */assets/* - */tests/* - - - - - * - - - - * - - - - * - - - - * - - - - * - - - - * - - - - * - - - - * - - - - * - - - - * - - - - - - - - - - - - - - diff --git a/plugin.php b/plugin.php index ef63bcb..f721b1c 100644 --- a/plugin.php +++ b/plugin.php @@ -1,11 +1,11 @@