Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.151.4

Version Description

Jan 18 2020 = * Fix: Users checking performance fix. * Fix: AC disabled if SFW contains less than 50 entries.

Download this release

Release Info

Developer glomberg
Plugin Icon 128x128 Spam protection, AntiSpam, FireWall by CleanTalk
Version 5.151.4
Comparing to
See all releases

Code changes from version 5.151.3 to 5.151.4

cleantalk.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Anti-Spam by CleanTalk
4
  Plugin URI: https://cleantalk.org
5
  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.
6
- Version: 5.151.3
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: https://cleantalk.org
9
  Text Domain: cleantalk-spam-protect
@@ -659,7 +659,7 @@ function apbct_sfw__check()
659
  )
660
  ) );
661
 
662
- if( $apbct->settings['sfw__anti_crawler'] && $apbct->stats['sfw']['entries'] ){
663
  $firewall->load_fw_module( new \Cleantalk\ApbctWP\Firewall\AntiCrawler(
664
  APBCT_TBL_FIREWALL_LOG,
665
  APBCT_TBL_AC_LOG,
3
  Plugin Name: Anti-Spam by CleanTalk
4
  Plugin URI: https://cleantalk.org
5
  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.
6
+ Version: 5.151.4
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: https://cleantalk.org
9
  Text Domain: cleantalk-spam-protect
659
  )
660
  ) );
661
 
662
+ if( $apbct->settings['sfw__anti_crawler'] && $apbct->stats['sfw']['entries'] > 50 ){
663
  $firewall->load_fw_module( new \Cleantalk\ApbctWP\Firewall\AntiCrawler(
664
  APBCT_TBL_FIREWALL_LOG,
665
  APBCT_TBL_AC_LOG,
lib/Cleantalk/ApbctWP/FindSpam/UsersChecker.php CHANGED
@@ -195,7 +195,7 @@ class UsersChecker extends Checker
195
  // Checking comments IP/Email. Gathering $data for check.
196
  $data = array();
197
 
198
- for( $i=0; $i < count($u); $i++ ){
199
 
200
  $user_meta = get_user_meta( $u[$i]->ID, 'session_tokens', true );
201
  if( is_array( $user_meta ) )
195
  // Checking comments IP/Email. Gathering $data for check.
196
  $data = array();
197
 
198
+ for($i=0, $iMax = count($u); $i < $iMax; $i++ ){
199
 
200
  $user_meta = get_user_meta( $u[$i]->ID, 'session_tokens', true );
201
  if( is_array( $user_meta ) )
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: spam, antispam, anti-spam, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 5.6
6
  Requires PHP: 5.4
7
- Stable tag: 5.151.3
8
  License: GPLv2
9
 
10
  Spam protection, anti-spam, firewall, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
@@ -580,6 +580,10 @@ If your website has forms that send data to external sources, you can enable opt
580
 
581
  == Changelog ==
582
 
 
 
 
 
583
  = 5.151.3 Jan 15 2020 =
584
  * Fix: Prevent logging false blocking for whitelisted networks.
585
  * Integration: Rafflepress integration implemented.
4
  Requires at least: 3.0
5
  Tested up to: 5.6
6
  Requires PHP: 5.4
7
+ Stable tag: 5.151.4
8
  License: GPLv2
9
 
10
  Spam protection, anti-spam, firewall, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
580
 
581
  == Changelog ==
582
 
583
+ = 5.151.4 Jan 18 2020 =
584
+ * Fix: Users checking performance fix.
585
+ * Fix: AC disabled if SFW contains less than 50 entries.
586
+
587
  = 5.151.3 Jan 15 2020 =
588
  * Fix: Prevent logging false blocking for whitelisted networks.
589
  * Integration: Rafflepress integration implemented.