Skip to content

Commit 2411936

Browse files
committed
Merge branch 'master' into fix
# Conflicts: # inc/cleantalk-public.php
2 parents 500ef9d + a54eb4e commit 2411936

48 files changed

Lines changed: 1757 additions & 577 deletions

Some content is hidden

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

cleantalk-spam-protect.zip

-2.57 MB
Binary file not shown.

cleantalk.php

Lines changed: 13 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.99-fix
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
@@ -624,9 +624,7 @@ function apbct_write_js_errors($data)
624624
! Server::inUri('/favicon.ico') &&
625625
! apbct_is_cli()
626626
) {
627-
wp_suspend_cache_addition(true);
628-
apbct_sfw__check();
629-
wp_suspend_cache_addition(false);
627+
add_action('init', 'apbct_sfw__init_wrapper', 1);
630628
}
631629
}
632630

@@ -848,6 +846,17 @@ function apbct_wpms__delete_blog(WP_Site $old_site)
848846
}
849847
}
850848

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+
851860
/**
852861
* Function for SpamFireWall check
853862
*/

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)