Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.113.1

Version Description

January 17 2019 = * Fix: Conflict with CityTours theme. * Fix: Error for Wordpress lower 4.7. * Add: Spam protection: "Validate email for existence".

Download this release

Release Info

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

Code changes from version 5.113 to 5.113.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.113
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
@@ -1009,7 +1009,7 @@ function apbct_is_user_role_in( $roles, $user = false ){
1009
  function apbct_is_ajax() {
1010
 
1011
  return
1012
- wp_doing_ajax() || // by standart WP functions
1013
  (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') || // by Request type
1014
  !empty($_POST['quform_ajax']); // special. QForms
1015
 
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.113.1
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
1009
  function apbct_is_ajax() {
1010
 
1011
  return
1012
+ (defined( 'DOING_AJAX' ) && DOING_AJAX) || // by standart WP functions
1013
  (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') || // by Request type
1014
  !empty($_POST['quform_ajax']); // special. QForms
1015
 
inc/cleantalk-common.php CHANGED
@@ -182,7 +182,6 @@ function apbct_get_sender_info() {
182
  : null;
183
 
184
  return array(
185
- 'js_keys' => json_encode($apbct->data['js_keys']),
186
  'remote_addr' => CleantalkHelper::ip_get(array('remote_addr'), false),
187
  'REFFERRER' => isset($_SERVER['HTTP_REFERER']) ? htmlspecialchars($_SERVER['HTTP_REFERER']) : null,
188
  'USER_AGENT' => isset($_SERVER['HTTP_USER_AGENT']) ? htmlspecialchars($_SERVER['HTTP_USER_AGENT']) : null,
@@ -207,6 +206,8 @@ function apbct_get_sender_info() {
207
  'page_set_timestamp' => !empty($_COOKIE['ct_ps_timestamp']) ? $_COOKIE['ct_ps_timestamp'] : null,
208
  'form_visible_inputs' => !empty($_COOKIE['apbct_visible_fields_count']) ? $_COOKIE['apbct_visible_fields_count'] : null,
209
  'apbct_visible_fields' => !empty($_COOKIE['apbct_visible_fields']) ? apbct_visibile_fields__process($_COOKIE['apbct_visible_fields']) : null,
 
 
210
  // Debug stuff
211
  'amp_detected' => $amp_detected,
212
  );
182
  : null;
183
 
184
  return array(
 
185
  'remote_addr' => CleantalkHelper::ip_get(array('remote_addr'), false),
186
  'REFFERRER' => isset($_SERVER['HTTP_REFERER']) ? htmlspecialchars($_SERVER['HTTP_REFERER']) : null,
187
  'USER_AGENT' => isset($_SERVER['HTTP_USER_AGENT']) ? htmlspecialchars($_SERVER['HTTP_USER_AGENT']) : null,
206
  'page_set_timestamp' => !empty($_COOKIE['ct_ps_timestamp']) ? $_COOKIE['ct_ps_timestamp'] : null,
207
  'form_visible_inputs' => !empty($_COOKIE['apbct_visible_fields_count']) ? $_COOKIE['apbct_visible_fields_count'] : null,
208
  'apbct_visible_fields' => !empty($_COOKIE['apbct_visible_fields']) ? apbct_visibile_fields__process($_COOKIE['apbct_visible_fields']) : null,
209
+ // Misc
210
+ //'validate_email_existence' => $apbct->settings['validate_email_existence'],
211
  // Debug stuff
212
  'amp_detected' => $amp_detected,
213
  );
inc/cleantalk-public.php CHANGED
@@ -1581,7 +1581,7 @@ function ct_check_registration_erros($errors, $sanitized_user_login = null, $use
1581
  * Set user meta (ct_hash) for successed registration
1582
  * @return null
1583
  */
1584
- function ct_user_register($user_id) {
1585
  global $apbct_cookie_request_id_label;
1586
  if (isset($_COOKIE[$apbct_cookie_request_id_label])) {
1587
  if(update_user_meta($user_id, 'ct_hash', $_COOKIE[$apbct_cookie_request_id_label])){
1581
  * Set user meta (ct_hash) for successed registration
1582
  * @return null
1583
  */
1584
+ function apbct_user_register($user_id) {
1585
  global $apbct_cookie_request_id_label;
1586
  if (isset($_COOKIE[$apbct_cookie_request_id_label])) {
1587
  if(update_user_meta($user_id, 'ct_hash', $_COOKIE[$apbct_cookie_request_id_label])){
inc/cleantalk-settings.php CHANGED
@@ -150,6 +150,10 @@ function apbct_settings__add_page() {
150
  'title' => __('Protect internal forms', 'cleantalk'),
151
  'description' => __('This option will enable protection for custom (hand-made) AJAX forms with PHP scripts handlers on your WordPress.', 'cleantalk'),
152
  ),
 
 
 
 
153
  ),
154
  ),
155
 
@@ -572,6 +576,8 @@ function apbct_settings__field__state(){
572
  .__('Contact forms', 'cleantalk');
573
  echo '<img class="apbct_status_icon" src="'.($apbct->settings['general_contact_forms_test']==1 || $apbct->moderate_ip ? $img : $img_no).'"/>'
574
  .__('Custom contact forms', 'cleantalk');
 
 
575
 
576
  // SFW + current network count
577
  /*
150
  'title' => __('Protect internal forms', 'cleantalk'),
151
  'description' => __('This option will enable protection for custom (hand-made) AJAX forms with PHP scripts handlers on your WordPress.', 'cleantalk'),
152
  ),
153
+ // 'validate_email_existence' => array(
154
+ // 'title' => __('Validate e-mail for existence', 'cleantalk'),
155
+ // 'description' => __('Using additional filter for e-mails. Block subscription/comment/registration if e-mail not exists.', 'cleantalk'),
156
+ // ),
157
  ),
158
  ),
159
 
576
  .__('Contact forms', 'cleantalk');
577
  echo '<img class="apbct_status_icon" src="'.($apbct->settings['general_contact_forms_test']==1 || $apbct->moderate_ip ? $img : $img_no).'"/>'
578
  .__('Custom contact forms', 'cleantalk');
579
+ echo '<img class="apbct_status_icon" src="'.($apbct->data['moderate'] == 1 || $apbct->moderate_ip ? $img : $img_no).'"/>'
580
+ .__('Validate email for existence', 'cleantalk');
581
 
582
  // SFW + current network count
583
  /*
lib/CleantalkState.php CHANGED
@@ -34,6 +34,7 @@ class CleantalkState
34
  'wc_checkout_test' => 0, //WooCommerce checkout default test => OFF
35
  'check_external' => 0,
36
  'check_internal' => 0,
 
37
 
38
  /* Comments and messages */
39
  'bp_private_messages' => 1, //buddyPress private messages test => ON
34
  'wc_checkout_test' => 0, //WooCommerce checkout default test => OFF
35
  'check_external' => 0,
36
  'check_internal' => 0,
37
+ // 'validate_email_existence' => 1,
38
 
39
  /* Comments and messages */
40
  'bp_private_messages' => 1, //buddyPress private messages test => ON
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.0
6
- Stable tag: 5.113
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
@@ -555,6 +555,11 @@ If your website has forms that send data to external sources, you can enable opt
555
  10. Website's options.
556
 
557
  == Changelog ==
 
 
 
 
 
558
  = 5.113 January 16 2019 =
559
  * Fix: Fast and Simple Contact Form.
560
  * Fix: Settings layout.
@@ -1769,6 +1774,11 @@ If your website has forms that send data to external sources, you can enable opt
1769
  * First version
1770
 
1771
  == Upgrade Notice ==
 
 
 
 
 
1772
  = 5.113 January 16 2019 =
1773
  * Fix: Fast and Simple Contact Form.
1774
  * Fix: Settings layout.
3
  Tags: spam, antispam, protection, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 5.0
6
+ Stable tag: 5.113.1
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
555
  10. Website's options.
556
 
557
  == Changelog ==
558
+ = 5.113.1 January 17 2019 =
559
+ * Fix: Conflict with CityTours theme.
560
+ * Fix: Error for Wordpress lower 4.7.
561
+ * Add: Spam protection: "Validate email for existence".
562
+
563
  = 5.113 January 16 2019 =
564
  * Fix: Fast and Simple Contact Form.
565
  * Fix: Settings layout.
1774
  * First version
1775
 
1776
  == Upgrade Notice ==
1777
+ = 5.113.1 January 17 2019 =
1778
+ * Fix: Conflict with CityTours theme.
1779
+ * Fix: Error for Wordperss lower 4.7.
1780
+ * Add: Spam protection: "Validate email for existance".
1781
+
1782
  = 5.113 January 16 2019 =
1783
  * Fix: Fast and Simple Contact Form.
1784
  * Fix: Settings layout.