Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.40.1

Version Description

2016-04-28 = * Fixed issue with Super Socializer. * Fixed issue with spam filtration for logged in users and Formidable forms. * Added logging of all submitted fields for FastSecure contact form.

Download this release

Release Info

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

Code changes from version 5.40 to 5.40.1

Files changed (4) hide show
  1. cleantalk.php +3 -3
  2. inc/cleantalk-ajax.php +5 -4
  3. inc/cleantalk-public.php +14 -18
  4. readme.txt +16 -3
cleantalk.php CHANGED
@@ -3,12 +3,12 @@
3
  Plugin Name: Anti-Spam by CleanTalk
4
  Plugin URI: http://cleantalk.org
5
  Description: Max power, all-in-one, captcha less, premium anti-spam plugin. No comment spam, no registration spam, no contact spam, protects any WordPress forms.
6
- Version: 5.40
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
- $cleantalk_plugin_version='5.40';
11
- $ct_agent_version = 'wordpress-540';
12
  $cleantalk_executed=false;
13
  $ct_sfw_updated = false;
14
 
3
  Plugin Name: Anti-Spam by CleanTalk
4
  Plugin URI: http://cleantalk.org
5
  Description: Max power, all-in-one, captcha less, premium anti-spam plugin. No comment spam, no registration spam, no contact spam, protects any WordPress forms.
6
+ Version: 5.40.1
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
+ $cleantalk_plugin_version='5.40.1';
11
+ $ct_agent_version = 'wordpress-5401';
12
  $cleantalk_executed=false;
13
  $ct_sfw_updated = false;
14
 
inc/cleantalk-ajax.php CHANGED
@@ -342,13 +342,14 @@ function ct_ajax_hook()
342
  //
343
  // Go out because of not spam data
344
  //
345
- $gmw_actions = array(
346
- 'gmaps_display_info_window',
347
- 'gmw_ps_display_info_window'
 
348
  );
349
  $checkjs = js_test('ct_checkjs', $_COOKIE, true);
350
  if ($checkjs && // Spammers usually fail the JS test
351
- (isset($_POST['action']) && in_array($_POST['action'], $gmw_actions)) // Geo My WP pop-up windows.
352
  ) {
353
  return false;
354
  }
342
  //
343
  // Go out because of not spam data
344
  //
345
+ $skip_post = array(
346
+ 'gmaps_display_info_window', // Geo My WP pop-up windows.
347
+ 'gmw_ps_display_info_window', // Geo My WP pop-up windows.
348
+ 'the_champ_user_auth', // Super Socializer
349
  );
350
  $checkjs = js_test('ct_checkjs', $_COOKIE, true);
351
  if ($checkjs && // Spammers usually fail the JS test
352
+ (isset($_POST['action']) && in_array($_POST['action'], $skip_post))
353
  ) {
354
  return false;
355
  }
inc/cleantalk-public.php CHANGED
@@ -373,11 +373,11 @@ function ct_frm_validate_entry ($errors, $values) {
373
 
374
  $ct_options = ct_get_options();
375
  $ct_data = ct_get_data();
376
-
377
- if ($ct_options['contact_forms_test'] == 0) {
378
  return false;
379
  }
380
-
381
  $checkjs = js_test('ct_checkjs', $_COOKIE, true);
382
  if($checkjs != 1){
383
  $checkjs = js_test($ct_checkjs_frm, $_POST, true);
@@ -1044,7 +1044,6 @@ function ct_registration_errors($errors, $sanitized_user_login = null, $user_ema
1044
  $ct_options=ct_get_options();
1045
  $ct_data=ct_get_data();
1046
 
1047
-
1048
  // Go out if a registrered user action
1049
  if (ct_is_user_enable() === false) {
1050
  return $errors;
@@ -1511,27 +1510,24 @@ function ct_si_contact_form_validate($form_errors = array(), $form_id_num = 0) {
1511
  $sender_email = null;
1512
  $sender_nickname = null;
1513
  $subject = '';
1514
- $message = '';
1515
- if (isset($_POST['email']))
1516
- $sender_email = $_POST['email'];
1517
-
1518
- if (isset($_POST['full_name']))
1519
- $sender_nickname = $_POST['full_name'];
1520
-
1521
- if (isset($_POST['subject']))
1522
- $subject = $_POST['subject'];
1523
 
1524
- if (isset($_POST['message']))
1525
- $message = $_POST['message'];
1526
-
1527
 
1528
  $ct_base_call_result = ct_base_call(array(
1529
- 'message' => $subject . "\n\n" . $message,
1530
  'example' => null,
1531
  'sender_email' => $sender_email,
1532
  'sender_nickname' => $sender_nickname,
1533
  'post_info' => $post_info,
1534
- 'sender_info' => $sender_info,
1535
  'checkjs' => $checkjs
1536
  ));
1537
  $ct = $ct_base_call_result['ct'];
373
 
374
  $ct_options = ct_get_options();
375
  $ct_data = ct_get_data();
376
+
377
+ if ($ct_options['contact_forms_test'] == 0 || ct_is_user_enable() === false || is_user_logged_in()) {
378
  return false;
379
  }
380
+
381
  $checkjs = js_test('ct_checkjs', $_COOKIE, true);
382
  if($checkjs != 1){
383
  $checkjs = js_test($ct_checkjs_frm, $_POST, true);
1044
  $ct_options=ct_get_options();
1045
  $ct_data=ct_get_data();
1046
 
 
1047
  // Go out if a registrered user action
1048
  if (ct_is_user_enable() === false) {
1049
  return $errors;
1510
  $sender_email = null;
1511
  $sender_nickname = null;
1512
  $subject = '';
1513
+ $message = array();
1514
+ $contact_form = null;
1515
+ //getting info from custom fields
1516
+ @ct_get_fields_any($sender_email, $message, $sender_nickname, $subject, $contact_form, $_POST);
1517
+ //setting fields if they with defaults names
1518
+ if ($subject != '') {
1519
+ $message = array_merge(array('subject' => $subject), $message);
1520
+ }
1521
+ $message = json_encode($message);
1522
 
 
 
 
1523
 
1524
  $ct_base_call_result = ct_base_call(array(
1525
+ 'message' => $message,
1526
  'example' => null,
1527
  'sender_email' => $sender_email,
1528
  'sender_nickname' => $sender_nickname,
1529
  'post_info' => $post_info,
1530
+ 'sender_info' => $sender_info,
1531
  'checkjs' => $checkjs
1532
  ));
1533
  $ct = $ct_base_call_result['ct'];
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === AntiSpam by CleanTalk - No Captcha, no comments & registrations spam ===
2
  Contributors: znaeff, shagimuratov
3
  Tags: anti-spam, antispam, bbpress, buddypress, captcha, capcha, captha, catcha, cf7 spam, comments, contact form spam, signup, spam, spammers, spammy, woocommerce, wordpress spam, booking, order, subscription, gravity spam, jetpack, bots, contact form 7, contact form, registrations, ninja, Fast Secure Contact, Gravity forms, formidable, mailchimp, s2member, protection, protect, email, akismet, plugin, contact, recaptcha, google captcha, google recaptcha, math, security, login, blacklist, prevent spam comments, wordpress, User Frontend, bulk delete, bulk remove, cloudflare, widget, review, auth forms, firewall, ddos, cleantalk, mailpoet, profile builder, comment spam, registration spam, spam comments, comment moderation, spam bots, block spam, signup spam, spam blocker, spam filter, user registration spam,pingback,trackback, spam trackbacks, anti-spam plugin, varnish, amp, spam free,cache, cdn
4
  Requires at least: 3.0
5
  Tested up to: 4.5
6
- Stable tag: 5.40
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -130,7 +130,7 @@ We have developed anti-spam for WordPress that provides maximum protection from
130
 
131
  The anti-spam method offered by CleanTalk avoids methods that inconvenience the communication (CAPTCHA, question-answer etc.), and offers your site visitors a more convenient one.
132
 
133
- CleanTalk is a premium anti-spam service for WordPress and the plugin works with our cloud anti-spam CleanTalk Service. CleanTalk offers a free trial and you can look at the pricing here. We provide anti-spam services at the highest level. To maintain this level we cannot afford to offer a free version of our service, as this will immediately affect the quality of providing anti-spam protection. Paying for a year of anti-spam service, you save a lot more and receive:
134
 
135
  * Up to 99.998% protection against spam bots.
136
  * Time and resources saving.
@@ -365,6 +365,9 @@ In that way plugin will protect WordPress comments, registrations and most of po
365
  = Does the anti-spam plugin work with Accelerated Mobile Pages (AMP)? =
366
  Yes, it does. But you have to turn off the option 'Use AJAX for JavaScript check' in Advanced settigns to be fully compatible with Accelerated Mobile Pages.
367
 
 
 
 
368
  == Other notes ==
369
 
370
  = Troubleshooting Guide =
@@ -461,6 +464,11 @@ WordPress 3.0 at least. PHP 5 with CURL or file_get_contents() function and enab
461
  1. CleanTalk works faster than most of other anti-spam plugins.
462
 
463
  == Changelog ==
 
 
 
 
 
464
  = 5.40 2016-04-19 =
465
  * Added JSON encoding for posts that were protected via Custom contact forms option. It allows show anti-spam logs in the Dashboard in more comfortable view.
466
  * Minor fix in plugin settings.
@@ -1027,6 +1035,11 @@ WordPress 3.0 at least. PHP 5 with CURL or file_get_contents() function and enab
1027
  * First version
1028
 
1029
  == Upgrade Notice ==
 
 
 
 
 
1030
  = 5.40 2016-04-19 =
1031
  * Added JSON encoding for posts that were protected via Custom contact forms option. It allows show anti-spam logs in the Dashboard in more comfortable view.
1032
  * Minor fix in plugin settings.
1
+ === Anti-Spam by CleanTalk - No Captcha, no comments & registrations spam ===
2
  Contributors: znaeff, shagimuratov
3
  Tags: anti-spam, antispam, bbpress, buddypress, captcha, capcha, captha, catcha, cf7 spam, comments, contact form spam, signup, spam, spammers, spammy, woocommerce, wordpress spam, booking, order, subscription, gravity spam, jetpack, bots, contact form 7, contact form, registrations, ninja, Fast Secure Contact, Gravity forms, formidable, mailchimp, s2member, protection, protect, email, akismet, plugin, contact, recaptcha, google captcha, google recaptcha, math, security, login, blacklist, prevent spam comments, wordpress, User Frontend, bulk delete, bulk remove, cloudflare, widget, review, auth forms, firewall, ddos, cleantalk, mailpoet, profile builder, comment spam, registration spam, spam comments, comment moderation, spam bots, block spam, signup spam, spam blocker, spam filter, user registration spam,pingback,trackback, spam trackbacks, anti-spam plugin, varnish, amp, spam free,cache, cdn
4
  Requires at least: 3.0
5
  Tested up to: 4.5
6
+ Stable tag: 5.40.1
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
130
 
131
  The anti-spam method offered by CleanTalk avoids methods that inconvenience the communication (CAPTCHA, question-answer etc.), and offers your site visitors a more convenient one.
132
 
133
+ CleanTalk is a premium anti-spam service for WordPress and the plugin works with our cloud anti-spam CleanTalk Service. CleanTalk offers a free trial and you can look at the <a href="https://cleantalk.org/price">pricing</a> here. We provide anti-spam services at the highest level. To maintain this level we cannot afford to offer a free version of our service, as this will immediately affect the quality of providing anti-spam protection. Paying for a year of anti-spam service, you save a lot more and receive:
134
 
135
  * Up to 99.998% protection against spam bots.
136
  * Time and resources saving.
365
  = Does the anti-spam plugin work with Accelerated Mobile Pages (AMP)? =
366
  Yes, it does. But you have to turn off the option 'Use AJAX for JavaScript check' in Advanced settigns to be fully compatible with Accelerated Mobile Pages.
367
 
368
+ = How to close renewal or trial notice in the WordPress backend? =
369
+ To close the notice please save plugin settings or it will be closed automatically within 60 minutes after the renewal.
370
+
371
  == Other notes ==
372
 
373
  = Troubleshooting Guide =
464
  1. CleanTalk works faster than most of other anti-spam plugins.
465
 
466
  == Changelog ==
467
+ = 5.40.1 2016-04-28 =
468
+ * Fixed issue with Super Socializer.
469
+ * Fixed issue with spam filtration for logged in users and Formidable forms.
470
+ * Added logging of all submitted fields for FastSecure contact form.
471
+
472
  = 5.40 2016-04-19 =
473
  * Added JSON encoding for posts that were protected via Custom contact forms option. It allows show anti-spam logs in the Dashboard in more comfortable view.
474
  * Minor fix in plugin settings.
1035
  * First version
1036
 
1037
  == Upgrade Notice ==
1038
+ = 5.40.1 2016-04-28 =
1039
+ * Fixed issue with Super Socializer.
1040
+ * Fixed issue with spam filtration for logged in users and Formidable forms.
1041
+ * Added logging of all submitted fields for FastSecure contact form.
1042
+
1043
  = 5.40 2016-04-19 =
1044
  * Added JSON encoding for posts that were protected via Custom contact forms option. It allows show anti-spam logs in the Dashboard in more comfortable view.
1045
  * Minor fix in plugin settings.