diff --git a/readme.txt b/readme.txt index 4d254237..ad63a4cc 100644 --- a/readme.txt +++ b/readme.txt @@ -564,6 +564,7 @@ Instructions for popular native integrations are below: = 4.4.0 = * Added integration with WPS Hide Login plugin. * Added compatibility with Contact Form 7 Stripe integration. +* Updated MailPoet integration. * Fixed conflict with Ninja Forms Upload field. * Fixed Ninja Forms Ajax processing. * Fixed error in cron with Matomo Analytics. diff --git a/src/php/MailPoet/Form.php b/src/php/MailPoet/Form.php index 1d876d5d..f04d01d3 100644 --- a/src/php/MailPoet/Form.php +++ b/src/php/MailPoet/Form.php @@ -94,7 +94,7 @@ public function add_captcha( $block_content, array $block, WP_Block $instance ): * @param API $api MailPoet API instance. */ public function verify( API $api ): void { - if ( is_admin() ) { + if ( ! wp_doing_ajax() ) { return; }