Skip to content

Commit 10a6f69

Browse files
Merge pull request #600 from CleanTalk/beta.6.55.ag
Beta.6.55. Final merge
2 parents 35ebb9f + f30e424 commit 10a6f69

51 files changed

Lines changed: 1962 additions & 672 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cleantalk.php

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: Anti-Spam by CleanTalk
55
Plugin URI: https://cleantalk.org
66
Description: Max power, all-in-one, no Captcha, premium anti-spam plugin. No comment spam, no registration spam, no contact spam, protects any WordPress forms.
7-
Version: 6.54
7+
Version: 6.55
88
Author: CleanTalk - Anti-Spam Protection <welcome@cleantalk.org>
99
Author URI: https://cleantalk.org
1010
Text Domain: cleantalk-spam-protect
@@ -429,6 +429,14 @@ function apbct_write_js_errors($data)
429429
apbct_form__learnpress__testSpam();
430430
}
431431

432+
// Appointment Booking Calendar
433+
if (
434+
apbct_is_plugin_active('appointment-booking-calendar/cpabc_appointments.php') &&
435+
Post::getString('cpabc_appointments_post')
436+
) {
437+
apbct_form__appointment_booking_calendar__testSpam();
438+
}
439+
432440
// OptimizePress
433441
if (
434442
apbct_is_plugin_active('op-dashboard/op-dashboard.php') &&
@@ -616,9 +624,7 @@ function apbct_write_js_errors($data)
616624
! Server::inUri('/favicon.ico') &&
617625
! apbct_is_cli()
618626
) {
619-
wp_suspend_cache_addition(true);
620-
apbct_sfw__check();
621-
wp_suspend_cache_addition(false);
627+
add_action('init', 'apbct_sfw__init_wrapper', 1);
622628
}
623629
}
624630

@@ -840,6 +846,17 @@ function apbct_wpms__delete_blog(WP_Site $old_site)
840846
}
841847
}
842848

849+
/**
850+
* Wrapper for SpamFireWall check to make if fire on 'init' hook
851+
* @return void
852+
*/
853+
function apbct_sfw__init_wrapper()
854+
{
855+
wp_suspend_cache_addition(true);
856+
apbct_sfw__check();
857+
wp_suspend_cache_addition(false);
858+
}
859+
843860
/**
844861
* Function for SpamFireWall check
845862
*/

css/cleantalk-admin-settings-page.min.css

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

css/cleantalk-email-decoder.min.css

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)