Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.127.3

Version Description

October 8 2019 = * Fix: Errors during registration.

Download this release

Release Info

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

Code changes from version 5.127.2 to 5.127.3

Files changed (3) hide show
  1. cleantalk.php +1 -1
  2. inc/cleantalk-public.php +6 -4
  3. readme.txt +7 -1
cleantalk.php CHANGED
@@ -3,7 +3,7 @@
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.
6
- Version: 5.127.2
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  Text Domain: cleantalk
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.
6
+ Version: 5.127.3
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  Text Domain: cleantalk
inc/cleantalk-public.php CHANGED
@@ -1750,14 +1750,17 @@ function ct_registration_errors($errors, $sanitized_user_login = null, $user_ema
1750
  }
1751
  return $errors;
1752
  }
 
1753
 
1754
- if(current_filter('woocommerce_registration_errors')){
1755
  $checkjs = apbct_js_test('ct_checkjs', $_COOKIE);
 
 
1756
  }else{
1757
  // This hack can be helpfull when plugin uses with untested themes&signups plugins.
1758
  $checkjs_post = apbct_js_test($ct_checkjs_register_form, $_POST);
1759
  $checkjs_cookie = apbct_js_test($ct_checkjs_register_form, $_COOKIE);
1760
- $checkjs = $checkjs_post || $checkjs_cookie;
1761
  }
1762
 
1763
  $sender_info = array(
@@ -2933,8 +2936,7 @@ function ct_contact_form_validate() {
2933
  $post_info['comment_type'] = 'feedback_general_contact_form';
2934
 
2935
  // Skip the test if it's WooCommerce and the checkout test unset
2936
- if(strpos($_SERVER['REQUEST_URI'], 'wc-ajax=checkout') !== false ||
2937
- strpos($_SERVER['REQUEST_URI'], 'wc-ajax=update_order_review') !== false ||
2938
  (isset($_POST['_wp_http_referer']) && strpos($_SERVER['REQUEST_URI'], 'wc-ajax=update_order_review') !== false) ||
2939
  !empty($_POST['woocommerce_checkout_place_order']) ||
2940
  strpos($_SERVER['REQUEST_URI'], 'wc-ajax=wc_ppec_start_checkout') !== false
1750
  }
1751
  return $errors;
1752
  }
1753
+
1754
 
1755
+ if(current_filter() == 'woocommerce_registration_errors'){
1756
  $checkjs = apbct_js_test('ct_checkjs', $_COOKIE);
1757
+ $checkjs_post = null;
1758
+ $checkjs_cookie = $checkjs;
1759
  }else{
1760
  // This hack can be helpfull when plugin uses with untested themes&signups plugins.
1761
  $checkjs_post = apbct_js_test($ct_checkjs_register_form, $_POST);
1762
  $checkjs_cookie = apbct_js_test($ct_checkjs_register_form, $_COOKIE);
1763
+ $checkjs = $checkjs_cookie ? $checkjs_cookie : $checkjs_post;
1764
  }
1765
 
1766
  $sender_info = array(
2936
  $post_info['comment_type'] = 'feedback_general_contact_form';
2937
 
2938
  // Skip the test if it's WooCommerce and the checkout test unset
2939
+ if(strpos($_SERVER['REQUEST_URI'], 'wc-ajax=checkout') !== false ||
 
2940
  (isset($_POST['_wp_http_referer']) && strpos($_SERVER['REQUEST_URI'], 'wc-ajax=update_order_review') !== false) ||
2941
  !empty($_POST['woocommerce_checkout_place_order']) ||
2942
  strpos($_SERVER['REQUEST_URI'], 'wc-ajax=wc_ppec_start_checkout') !== false
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: safronik
3
  Tags: spam, antispam, protection, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 5.3
6
- Stable tag: 5.127.2
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
@@ -568,6 +568,9 @@ If your website has forms that send data to external sources, you can enable opt
568
  10. Website's options.
569
 
570
  == Changelog ==
 
 
 
571
  = 5.127.2 October 8 2019 =
572
  * Integration: SeedProd Coming Soon Page Pro.
573
  * Fix: WooCommerce double reuqests.
@@ -2003,6 +2006,9 @@ If your website has forms that send data to external sources, you can enable opt
2003
  * First version
2004
 
2005
  == Upgrade Notice ==
 
 
 
2006
  = 5.127.2 October 8 2019 =
2007
  * Integration: SeedProd Coming Soon Page Pro.
2008
  * Fix: WooCommerce double reuqests.
3
  Tags: spam, antispam, protection, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 5.3
6
+ Stable tag: 5.127.3
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
568
  10. Website's options.
569
 
570
  == Changelog ==
571
+ = 5.127.3 October 8 2019 =
572
+ * Fix: Errors during registration.
573
+
574
  = 5.127.2 October 8 2019 =
575
  * Integration: SeedProd Coming Soon Page Pro.
576
  * Fix: WooCommerce double reuqests.
2006
  * First version
2007
 
2008
  == Upgrade Notice ==
2009
+ = 5.127.3 October 8 2019 =
2010
+ * Fix: Errors during registration.
2011
+
2012
  = 5.127.2 October 8 2019 =
2013
  * Integration: SeedProd Coming Soon Page Pro.
2014
  * Fix: WooCommerce double reuqests.