Version Description
Mar 15 2021 = * Fix: SFW. Updating fixed.
Download this release
Release Info
Developer | glomberg |
Plugin | Spam protection, AntiSpam, FireWall by CleanTalk |
Version | 5.153.7 |
Comparing to | |
See all releases |
Code changes from version 5.153.6 to 5.153.7
- cleantalk.php +30 -38
- readme.txt +4 -1
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.153.
|
7 |
Author: СleanTalk <welcome@cleantalk.org>
|
8 |
Author URI: https://cleantalk.org
|
9 |
Text Domain: cleantalk-spam-protect
|
@@ -909,46 +909,38 @@ function ct_sfw_update( $api_key = '', $immediate = false ){
|
|
909 |
);
|
910 |
} else {
|
911 |
|
912 |
-
$
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
$apbct->stats['sfw']['
|
934 |
-
|
935 |
-
|
936 |
-
// Running sfw update once again in 12 min if entries is < 4000
|
937 |
-
if( $is_first_updating !== false ) {
|
938 |
-
if( $apbct->stats['sfw']['entries'] < 4000 ) {
|
939 |
-
wp_schedule_single_event( time() + 720, 'ct_sfw_update' );
|
940 |
-
}
|
941 |
-
delete_option( 'sfw_sync_first' );
|
942 |
}
|
|
|
|
|
943 |
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
return $result;
|
948 |
|
949 |
-
|
950 |
-
|
951 |
-
}
|
952 |
|
953 |
}
|
954 |
}else
|
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.153.7
|
7 |
Author: СleanTalk <welcome@cleantalk.org>
|
8 |
Author URI: https://cleantalk.org
|
9 |
Text Domain: cleantalk-spam-protect
|
909 |
);
|
910 |
} else {
|
911 |
|
912 |
+
$is_first_updating = strpos( $apbct->fw_stats['firewall_updating_id'], 'first' );
|
913 |
+
|
914 |
+
// @todo We have to handle errors here
|
915 |
+
SFW::delete_main_data_tables( DB::getInstance() );
|
916 |
+
// @todo We have to handle errors here
|
917 |
+
SFW::rename_data_tables( DB::getInstance() );
|
918 |
+
|
919 |
+
//Files array is empty update sfw stats
|
920 |
+
$apbct->data['last_firewall_updated'] = current_time('timestamp'); // Unused
|
921 |
+
$apbct->save('data'); // Unused
|
922 |
+
$apbct->fw_stats['firewall_update_percent'] = 0;
|
923 |
+
$apbct->fw_stats['firewall_updating_id'] = null;
|
924 |
+
$apbct->save( 'fw_stats' );
|
925 |
+
|
926 |
+
//Files array is empty update sfw time
|
927 |
+
$apbct->stats['sfw']['entries'] = $wpdb->get_var('SELECT COUNT(*) FROM ' . APBCT_TBL_FIREWALL_DATA );
|
928 |
+
$apbct->stats['sfw']['last_update_time'] = time();
|
929 |
+
$apbct->save('stats');
|
930 |
+
|
931 |
+
// Running sfw update once again in 12 min if entries is < 4000
|
932 |
+
if( $is_first_updating !== false ) {
|
933 |
+
if( $apbct->stats['sfw']['entries'] < 4000 ) {
|
934 |
+
wp_schedule_single_event( time() + 720, 'ct_sfw_update' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
935 |
}
|
936 |
+
delete_option( 'sfw_sync_first' );
|
937 |
+
}
|
938 |
|
939 |
+
// Delete update errors
|
940 |
+
$apbct->error_delete( 'sfw_update', 'save_settings' );
|
|
|
|
|
941 |
|
942 |
+
// REMOVE AND RENAME
|
943 |
+
return $result;
|
|
|
944 |
|
945 |
}
|
946 |
}else
|
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.7
|
6 |
Requires PHP: 5.4
|
7 |
-
Stable tag: 5.153.
|
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,9 @@ If your website has forms that send data to external sources, you can enable opt
|
|
580 |
|
581 |
== Changelog ==
|
582 |
|
|
|
|
|
|
|
583 |
= 5.153.6 Mar 12 2021 =
|
584 |
* Fix: Show response for all AJAX forms #2.
|
585 |
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.7
|
6 |
Requires PHP: 5.4
|
7 |
+
Stable tag: 5.153.7
|
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.153.7 Mar 15 2021 =
|
584 |
+
* Fix: SFW. Updating fixed.
|
585 |
+
|
586 |
= 5.153.6 Mar 12 2021 =
|
587 |
* Fix: Show response for all AJAX forms #2.
|
588 |
|