diff --git a/inc/cleantalk-public-validate.php b/inc/cleantalk-public-validate.php index 5cb669792..e748b2240 100644 --- a/inc/cleantalk-public-validate.php +++ b/inc/cleantalk-public-validate.php @@ -372,8 +372,7 @@ function ct_contact_form_validate() ); die(); } elseif ( - (int)$apbct->settings['forms__check_internal'] === 1 - && !empty($_POST) + !empty($_POST) && apbct_is_ajax() && Post::equal('sib_form_action', 'subscribe_form_submit') && apbct_is_plugin_active('mailin/sendinblue.php') diff --git a/inc/cleantalk-public.php b/inc/cleantalk-public.php index 5d2e9c8c1..9f766dcc1 100644 --- a/inc/cleantalk-public.php +++ b/inc/cleantalk-public.php @@ -361,8 +361,7 @@ class_exists('Jetpack', false) && * Internal Forms - Sendinblue Integration https://wordpress.org/plugins/mailin/ */ if ( - (int)$apbct->settings['forms__check_internal'] === 1 - && !empty($_POST) + !empty($_POST) && Post::equal('sib_form_action', 'subscribe_form_submit') && apbct_is_plugin_active('mailin/sendinblue.php') ) {