Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.98

Version Description

June 27 2018 = * Fix: WooCommerce: Theme exclusion. * Fix: Public GDPR JS code. * Minor fixes.

Download this release

Release Info

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

Code changes from version 5.97 to 5.98

cleantalk.php CHANGED
@@ -3,15 +3,15 @@
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.97
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
 
11
  $cleantalk_executed = false;
12
 
13
- define('APBCT_VERSION', '5.97');
14
- define('APBCT_AGENT', 'wordpress-597');
15
 
16
  define('CLEANTALK_REMOTE_CALL_SLEEP', 10); // Minimum time between remote call
17
  define('APBCT_CASERT_PATH', file_exists(ABSPATH . WPINC . '/certificates/ca-bundle.crt')
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.98
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
 
11
  $cleantalk_executed = false;
12
 
13
+ define('APBCT_VERSION', '5.98');
14
+ define('APBCT_AGENT', 'wordpress-598');
15
 
16
  define('CLEANTALK_REMOTE_CALL_SLEEP', 10); // Minimum time between remote call
17
  define('APBCT_CASERT_PATH', file_exists(ABSPATH . WPINC . '/certificates/ca-bundle.crt')
inc/cleantalk-public.php CHANGED
@@ -2011,6 +2011,7 @@ function ct_contact_form_validate() {
2011
  isset($_POST['gform_submit']) || //Gravity form
2012
  (isset($_POST['wc_reset_password'], $_POST['_wpnonce'], $_POST['_wp_http_referer'])) || //WooCommerce recovery password form
2013
  (isset($_POST['woocommerce-login-nonce'], $_POST['login'], $_POST['password'], $_POST['_wp_http_referer'])) || //WooCommerce login form
 
2014
  (isset($_POST['ccf_form']) && intval($_POST['ccf_form']) == 1) ||
2015
  (isset($_POST['contact_tags']) && strpos($_POST['contact_tags'], 'MBR:') !== false) ||
2016
  (strpos($_SERVER['REQUEST_URI'], 'bizuno.php') && !empty($_POST['bizPass'])) ||
@@ -2336,13 +2337,17 @@ function ct_enqueue_scripts_public($hook){
2336
 
2337
  if(!empty($ct_options['registrations_test']) || !empty($ct_options['comments_test']) || !empty($ct_options['contact_forms_test']) || !empty($ct_options['general_contact_forms_test']) || !empty($ct_options['wc_checkout_test']) || !empty($ct_options['check_external']) || !empty($ct_options['check_internal']) || !empty($ct_options['bp_private_messages']) || !empty($ct_options['general_postdata_test'])){
2338
 
2339
- wp_enqueue_script('ct_public_gdpr', APBCT_URL_PATH.'/js/apbct-public--gdpr.js', array('jquery'), APBCT_VERSION);
2340
- wp_enqueue_script('ct_public', APBCT_URL_PATH.'/js/apbct-public.js', array('jquery'), APBCT_VERSION, 'in_footer');
2341
 
2342
- wp_localize_script('ct_public_gdpr', 'ctPublic', array(
2343
- 'gdpr_forms' => isset($ct_options['gdpr_forms_id']) ? explode(', ', $ct_options['gdpr_forms_id']) : array(),
2344
- 'gdpr_text' => isset($ct_options['gdpr_text']) ? $ct_options['gdpr_text'] : __('By using this form you agree with the storage and processing of your data by using the Privacy Policy on this website.', 'cleantalk'),
2345
- ));
 
 
 
 
 
2346
 
2347
  }
2348
 
2011
  isset($_POST['gform_submit']) || //Gravity form
2012
  (isset($_POST['wc_reset_password'], $_POST['_wpnonce'], $_POST['_wp_http_referer'])) || //WooCommerce recovery password form
2013
  (isset($_POST['woocommerce-login-nonce'], $_POST['login'], $_POST['password'], $_POST['_wp_http_referer'])) || //WooCommerce login form
2014
+ strpos($_SERVER['REQUEST_URI'], 'wc-ajax=get_refreshed_fragments') !== false ||
2015
  (isset($_POST['ccf_form']) && intval($_POST['ccf_form']) == 1) ||
2016
  (isset($_POST['contact_tags']) && strpos($_POST['contact_tags'], 'MBR:') !== false) ||
2017
  (strpos($_SERVER['REQUEST_URI'], 'bizuno.php') && !empty($_POST['bizPass'])) ||
2337
 
2338
  if(!empty($ct_options['registrations_test']) || !empty($ct_options['comments_test']) || !empty($ct_options['contact_forms_test']) || !empty($ct_options['general_contact_forms_test']) || !empty($ct_options['wc_checkout_test']) || !empty($ct_options['check_external']) || !empty($ct_options['check_internal']) || !empty($ct_options['bp_private_messages']) || !empty($ct_options['general_postdata_test'])){
2339
 
2340
+ wp_enqueue_script('ct_public', APBCT_URL_PATH.'/js/apbct-public.js', array(''), APBCT_VERSION, 'in_footer');
 
2341
 
2342
+ if(shortcode_exists( 'cleantalk_gdpr_form')){
2343
+
2344
+ wp_enqueue_script('ct_public_gdpr', APBCT_URL_PATH.'/js/apbct-public--gdpr.js', array('jquery'), APBCT_VERSION);
2345
+
2346
+ wp_localize_script('ct_public_gdpr', 'ctPublic', array(
2347
+ 'gdpr_forms' => isset($ct_options['gdpr_forms_id']) ? explode(', ', $ct_options['gdpr_forms_id']) : array(),
2348
+ 'gdpr_text' => isset($ct_options['gdpr_text']) ? $ct_options['gdpr_text'] : __('By using this form you agree with the storage and processing of your data by using the Privacy Policy on this website.', 'cleantalk'),
2349
+ ));
2350
+ }
2351
 
2352
  }
2353
 
inc/cleantalk-users.php CHANGED
@@ -534,7 +534,7 @@ function ct_ajax_insert_users()
534
 
535
  //* INSERTION
536
  global $wpdb;
537
- $to_insert = 10;
538
  $result = $wpdb->get_results("SELECT network FROM `".$wpdb->base_prefix."cleantalk_sfw` LIMIT $to_insert;", ARRAY_A);
539
 
540
  if($result){
534
 
535
  //* INSERTION
536
  global $wpdb;
537
+ $to_insert = 100;
538
  $result = $wpdb->get_results("SELECT network FROM `".$wpdb->base_prefix."cleantalk_sfw` LIMIT $to_insert;", ARRAY_A);
539
 
540
  if($result){
js/apbct-public--gdpr.js CHANGED
@@ -29,7 +29,5 @@ function apbct_gdpr__form_append_notice(){
29
  }
30
 
31
  jQuery(document).ready(function(){
32
-
33
  apbct_gdpr__form_append_notice();
34
-
35
  });
29
  }
30
 
31
  jQuery(document).ready(function(){
 
32
  apbct_gdpr__form_append_notice();
 
33
  });
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: 4.9
6
- Stable tag: 5.97
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
@@ -516,6 +516,11 @@ Yes, it is. Please read this article,
516
  10. Website's options.
517
 
518
  == Changelog ==
 
 
 
 
 
519
  = 5.97 June 7 2018 =
520
  * Fix: Update system.
521
  * Fix: Feedback from public page (admin only).
@@ -1601,6 +1606,11 @@ Yes, it is. Please read this article,
1601
  * First version
1602
 
1603
  == Upgrade Notice ==
 
 
 
 
 
1604
  = 5.97 June 7 2018 =
1605
  * Fix: Update system.
1606
  * Fix: Feedback from public page (admin only).
3
  Tags: spam, antispam, protection, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 4.9
6
+ Stable tag: 5.98
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
516
  10. Website's options.
517
 
518
  == Changelog ==
519
+ = 5.98 June 27 2018 =
520
+ * Fix: WooCommerce: Theme exclusion.
521
+ * Fix: Public GDPR JS code.
522
+ * Minor fixes.
523
+
524
  = 5.97 June 7 2018 =
525
  * Fix: Update system.
526
  * Fix: Feedback from public page (admin only).
1606
  * First version
1607
 
1608
  == Upgrade Notice ==
1609
+ = 5.98 June 27 2018 =
1610
+ * Fix: WooCommerce: Exclusion.
1611
+ * Fix: Public GDPR JS code.
1612
+ * Minor fixes.
1613
+
1614
  = 5.97 June 7 2018 =
1615
  * Fix: Update system.
1616
  * Fix: Feedback from public page (admin only).