Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.76

Version Description

September 20 2017 = * Fixed issue with SpamFireWall and caching plugins. * Banners logic updated.

Download this release

Release Info

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

Code changes from version 5.75 to 5.76

assets/js/cleantalk-admin.js CHANGED
@@ -1,8 +1,9 @@
1
  jQuery(document).ready(function(){
2
 
3
- jQuery('.ct-trial-notice').on('click', 'button', function(){
4
- var ct_date = new Date(new Date().getTime() + 86400 * 1000);
5
- document.cookie = "ct_trial_banner_closed=1; path=/; expires=" + ct_date.toUTCString();
6
- });
 
7
 
8
  });
1
  jQuery(document).ready(function(){
2
 
3
+ // Trial banner close handler
4
+ // jQuery('.ct-trial-notice').on('click', 'button', function(){
5
+ // var ct_date = new Date(new Date().getTime() + 86400 * 1000);
6
+ // document.cookie = "ct_trial_banner_closed=1; path=/; expires=" + ct_date.toUTCString();
7
+ // });
8
 
9
  });
cleantalk.php CHANGED
@@ -3,13 +3,13 @@
3
  Plugin Name: Anti-Spam by CleanTalk
4
  Plugin URI: http://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. Formerly Anti-Spam by CleanTalk.
6
- Version: 5.75
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
 
11
- $cleantalk_plugin_version='5.75';
12
- $ct_agent_version = 'wordpress-575';
13
  $cleantalk_executed=false;
14
 
15
  define('CLEANTALK_REMOTE_CALL_SLEEP', 10); // Minimum time between remote call
3
  Plugin Name: Anti-Spam by CleanTalk
4
  Plugin URI: http://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. Formerly Anti-Spam by CleanTalk.
6
+ Version: 5.76
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
 
11
+ $cleantalk_plugin_version='5.76';
12
+ $ct_agent_version = 'wordpress-576';
13
  $cleantalk_executed=false;
14
 
15
  define('CLEANTALK_REMOTE_CALL_SLEEP', 10); // Minimum time between remote call
inc/cleantalk-admin.php CHANGED
@@ -1637,8 +1637,8 @@ function cleantalk_admin_notice_message(){
1637
  }
1638
 
1639
  //"Trial period ends" notice from ct_admin_init().noticePaidTill()
1640
- if ($show_notice && $show_ct_notice_trial == 1 && empty($_COOKIE['ct_trial_banner_closed'])) {
1641
- echo '<div class="error notice is-dismissible ct-trial-notice">
1642
  <h3>' . sprintf(__("%s trial period ends, please upgrade to %s!", 'cleantalk'),
1643
  "<a href='{$settings_link}'>$ct_plugin_name</a>",
1644
  "<a href=\"http://cleantalk.org/my/bill/recharge?utm_source=wp-backend&utm_medium=cpc&utm_campaign=WP%20backend%20trial$user_token&cp_mode=antispam\" target=\"_blank\"><b>premium version</b></a>") .
1637
  }
1638
 
1639
  //"Trial period ends" notice from ct_admin_init().noticePaidTill()
1640
+ if ($show_notice && $show_ct_notice_trial == 1) {
1641
+ echo '<div class="error">
1642
  <h3>' . sprintf(__("%s trial period ends, please upgrade to %s!", 'cleantalk'),
1643
  "<a href='{$settings_link}'>$ct_plugin_name</a>",
1644
  "<a href=\"http://cleantalk.org/my/bill/recharge?utm_source=wp-backend&utm_medium=cpc&utm_campaign=WP%20backend%20trial$user_token&cp_mode=antispam\" target=\"_blank\"><b>premium version</b></a>") .
inc/sfw_die_page.html CHANGED
@@ -66,7 +66,12 @@ function get_current_url() {
66
  set_spamFireWallCookie('{COOKIE_PREFIX}ct_sfw_passed','1');
67
  }, 2000);
68
  setTimeout(function(){
69
- window.location.reload(1);
 
 
 
 
 
70
  }, reload_timeout);
71
  </script>
72
  </body>
66
  set_spamFireWallCookie('{COOKIE_PREFIX}ct_sfw_passed','1');
67
  }, 2000);
68
  setTimeout(function(){
69
+ var ct_addition = '';
70
+ if(window.location.search === '')
71
+ ct_addition = '?sfw=pass';
72
+ else
73
+ ct_addition = '&sfw=pass';
74
+ window.location.href=window.location.href + ct_addition;
75
  }, reload_timeout);
76
  </script>
77
  </body>
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Spam protection FireWall, AntiSpam by CleanTalk ===
2
- Contributors: znaeff, shagimuratov, serge00, sartemd174, amagsumov
3
  Tags: antispam, protection, contact form, comments, spam
4
  Requires at least: 3.0
5
  Tested up to: 4.8
6
- Stable tag: 5.75
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce spam. Forget spam.
@@ -27,6 +27,9 @@ No CAPTCHA, no questions, no animal counting, no puzzles, no math and no spam bo
27
  1. Checks and removes the existing spam comments and spam users.
28
  1. Compatible with mobile users and devices.
29
 
 
 
 
30
  = Public reviews =
31
  >With CleanTalk installed you can rest assured that you will no longer have to fuss with annoying spam. You can now focus your time on developing and improving your web site, your blog content, and you business without being distracted by these useless comments.
32
  > *Dr. Erica Goodstone. <a href="https://www.poweraffiliateclub.com/clear-your-blog-of-spam-comments/" target="_blank">www.poweraffiliateclub.com</a>*
@@ -230,9 +233,6 @@ CleanTalk has an advanced option “SpamFireWall”. This option allows you to b
230
  = Requirements =
231
  WordPress 3.0 at least. PHP 5 with CURL or file_get_contents() function and enabled 'allow_url_fopen' setting. <a href="http://cleantalk.org/register?platform=wordpress">Sign up</a> to get an Access key.
232
 
233
- = Free trial then $8 per year =
234
- CleanTalk is a free anti spam plugin which work with the premium Cloud Anti-Spam service cleantalk.org. This plugin as a service https://en.wikipedia.org/wiki/Software_as_a_service.
235
-
236
  = We recommend =
237
  * <a href="https://wordpress.org/plugins/security-malware-firewall/">Security & Firewall plugin by CleanTalk</a>
238
 
@@ -506,6 +506,10 @@ We develop plugin to do it as optimized as possible, CleanTalk doesn't downgrade
506
  1. The plugin deletes/removes the existing spam comments and users accounts.
507
 
508
  == Changelog ==
 
 
 
 
509
  = 5.75 September 15 2017 =
510
  * Pause feature for users/comments spam check.
511
  * Improved protection from spam.
@@ -1433,6 +1437,10 @@ We develop plugin to do it as optimized as possible, CleanTalk doesn't downgrade
1433
  * First version
1434
 
1435
  == Upgrade Notice ==
 
 
 
 
1436
  = 5.75 September 15 2017 =
1437
  * Pause feature for users/comments spam check.
1438
  * Improved protection from spam.
1
  === Spam protection FireWall, AntiSpam by CleanTalk ===
2
+ Contributors: znaeff, shagimuratov, sartemd174
3
  Tags: antispam, protection, contact form, comments, spam
4
  Requires at least: 3.0
5
  Tested up to: 4.8
6
+ Stable tag: 5.76
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce spam. Forget spam.
27
  1. Checks and removes the existing spam comments and spam users.
28
  1. Compatible with mobile users and devices.
29
 
30
+ = Free trial then $8 per year =
31
+ CleanTalk is a free anti spam plugin which work with the premium Cloud Anti-Spam service cleantalk.org. This plugin as a service https://en.wikipedia.org/wiki/Software_as_a_service.
32
+
33
  = Public reviews =
34
  >With CleanTalk installed you can rest assured that you will no longer have to fuss with annoying spam. You can now focus your time on developing and improving your web site, your blog content, and you business without being distracted by these useless comments.
35
  > *Dr. Erica Goodstone. <a href="https://www.poweraffiliateclub.com/clear-your-blog-of-spam-comments/" target="_blank">www.poweraffiliateclub.com</a>*
233
  = Requirements =
234
  WordPress 3.0 at least. PHP 5 with CURL or file_get_contents() function and enabled 'allow_url_fopen' setting. <a href="http://cleantalk.org/register?platform=wordpress">Sign up</a> to get an Access key.
235
 
 
 
 
236
  = We recommend =
237
  * <a href="https://wordpress.org/plugins/security-malware-firewall/">Security & Firewall plugin by CleanTalk</a>
238
 
506
  1. The plugin deletes/removes the existing spam comments and users accounts.
507
 
508
  == Changelog ==
509
+ = 5.76 September 20 2017 =
510
+ * Fixed issue with SpamFireWall and caching plugins.
511
+ * Banners logic updated.
512
+
513
  = 5.75 September 15 2017 =
514
  * Pause feature for users/comments spam check.
515
  * Improved protection from spam.
1437
  * First version
1438
 
1439
  == Upgrade Notice ==
1440
+ = 5.76 September 20 2017 =
1441
+ * Fixed issue with SpamFireWall and caching plugins.
1442
+ * Banners logic updated.
1443
+
1444
  = 5.75 September 15 2017 =
1445
  * Pause feature for users/comments spam check.
1446
  * Improved protection from spam.