Skip to content

Commit 598b63e

Browse files
committed
Merge remote-tracking branch 'origin/fix' into dev
# Conflicts: # cleantalk.php
2 parents 3cb6ce0 + 64da8de commit 598b63e

24 files changed

+523
-76
lines changed

inc/cleantalk-integrations-by-hook.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,13 @@
291291
'setting' => 'forms__contact_forms_test',
292292
'ajax' => true
293293
),
294+
'BookingCalendar' => array(
295+
'hook' => [
296+
'WPBC_AJX_BOOKING__CREATE',
297+
],
298+
'setting' => 'forms__contact_forms_test',
299+
'ajax' => true
300+
),
294301
'JobstackThemeRegistration' => array(
295302
'hook' => 'wp_loaded',
296303
'setting' => 'forms__registrations_test',

inc/cleantalk-pluggable.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,13 @@ function apbct_is_skip_request($ajax = false, $ajax_message_obj = array())
14061406
return 'BookingPress service action';
14071407
}
14081408

1409+
if (
1410+
apbct_is_plugin_active('booking/wpdev-booking.php') &&
1411+
(Post::getString('action') === 'WPBC_AJX_BOOKING__CREATE')
1412+
) {
1413+
return 'WP BookingCalendar service action';
1414+
}
1415+
14091416
if (
14101417
(
14111418
apbct_is_plugin_active('pixelyoursite/pixelyoursite.php') ||
@@ -1812,6 +1819,11 @@ class_exists('Cleantalk\Antispam\Integrations\CleantalkInternalForms')
18121819
apbct_is_in_uri('wc-ajax=iwd_opc_update_order_review') ) {
18131820
return 'cartflows_save_cart';
18141821
}
1822+
// WC addon - Metorik Helper plugin service requests
1823+
if ( apbct_is_plugin_active('metorik-helper/metorik-helper.php') &&
1824+
apbct_is_in_uri('wc-ajax=metorik_capture_customer_data') ) {
1825+
return 'metorik-helper skip';
1826+
}
18151827
// Vault Press (JetPack) plugin service requests
18161828
if (
18171829
Post::get('do_backups') !== '' &&

inc/cleantalk-public-integrations.php

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,11 @@ function apbct_form__contactForm7__testSpam($spam, $_submission = null)
14601460
*/
14611461
$input_array = apply_filters('apbct__filter_post', $_POST);
14621462

1463+
$honeypot_params = array();
1464+
if ( isset($input_array['apbct__email_id__wp_contact_form_7']) ) {
1465+
$honeypot_params['honeypot_field'] = ($input_array['apbct__email_id__wp_contact_form_7'] === '') ? 1 : 0;
1466+
}
1467+
14631468
$ct_temp_msg_data = ct_get_fields_any($input_array);
14641469

14651470
$sender_email = isset($ct_temp_msg_data['email']) ? $ct_temp_msg_data['email'] : '';
@@ -1472,21 +1477,24 @@ function apbct_form__contactForm7__testSpam($spam, $_submission = null)
14721477
}
14731478

14741479
$base_call_result = apbct_base_call(
1475-
array(
1476-
'message' => $message,
1477-
'sender_email' => $sender_email,
1478-
'sender_nickname' => $sender_nickname,
1479-
'js_on' => $checkjs,
1480-
'post_info' => array('comment_type' => 'contact_form_wordpress_cf7'),
1481-
'sender_info' => array(
1482-
'form_validation' => ! isset($apbct->validation_error)
1483-
? null
1484-
: json_encode(array(
1485-
'validation_notice' => $apbct->validation_error,
1486-
'page_url' => TT::toString(Server::get('HTTP_HOST')) . TT::toString(Server::get('REQUEST_URI')),
1487-
)),
1488-
'sender_emails_array' => $sender_emails_array,
1480+
array_merge(
1481+
array(
1482+
'message' => $message,
1483+
'sender_email' => $sender_email,
1484+
'sender_nickname' => $sender_nickname,
1485+
'js_on' => $checkjs,
1486+
'post_info' => array('comment_type' => 'contact_form_wordpress_cf7'),
1487+
'sender_info' => array(
1488+
'form_validation' => ! isset($apbct->validation_error)
1489+
? null
1490+
: json_encode(array(
1491+
'validation_notice' => $apbct->validation_error,
1492+
'page_url' => TT::toString(Server::get('HTTP_HOST')) . TT::toString(Server::get('REQUEST_URI')),
1493+
)),
1494+
'sender_emails_array' => $sender_emails_array,
1495+
),
14891496
),
1497+
$honeypot_params
14901498
)
14911499
);
14921500

js/apbct-public-bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_ext-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_ext-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_full-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_full-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_int-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)