Spam protection, AntiSpam, FireWall by CleanTalk - Version 2.52

Version Description

2014-06-25 = * Fixed 'Fatal error: Call to a member function get_error_code()' issue with signups via BuddyPress.

Download this release

Release Info

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

Code changes from version 2.51 to 2.52

Files changed (2) hide show
  1. cleantalk.php +5 -5
  2. readme.txt +8 -1
cleantalk.php CHANGED
@@ -3,14 +3,14 @@
3
  Plugin Name: Anti-spam by CleanTalk
4
  Plugin URI: http://cleantalk.org
5
  Description: Cloud antispam for comments, registrations and contacts. The plugin doesn't use CAPTCHA, Q&A, math, counting animals or quiz to stop spam bots.
6
- Version: 2.51
7
  Author: СleanTalk <welcome@cleantalk.ru>
8
  Author URI: http://cleantalk.org
9
  */
10
 
11
  define('CLEANTALK_PLUGIN_DIR', plugin_dir_path(__FILE__));
12
 
13
- $ct_agent_version = 'wordpress-251';
14
  $ct_plugin_name = 'Anti-spam by CleanTalk';
15
  $ct_checkjs_frm = 'ct_checkjs_frm';
16
  $ct_checkjs_register_form = 'ct_checkjs_register_form';
@@ -207,7 +207,6 @@ function ct_get_options() {
207
  function ct_def_options() {
208
  return array(
209
  'server' => 'http://moderate.cleantalk.org',
210
- // 'server' => 'http://localhost',
211
  'apikey' => __('enter key', 'cleantalk'),
212
  'autoPubRevelantMess' => '1',
213
  'registrations_test' => '1',
@@ -1005,6 +1004,7 @@ function ct_registration_errors_wpmu($errors) {
1005
  if ($wpmu && isset($errors['errors']->errors) && count($errors['errors']->errors) > 0) {
1006
  return $errors;
1007
  }
 
1008
  $errors['errors'] = ct_registration_errors($errors['errors'], $sanitized_user_login, $user_email);
1009
 
1010
  // Show CleanTalk errors in user_name field
@@ -1030,9 +1030,9 @@ function ct_register_post($sanitized_user_login = null, $user_email = null, $err
1030
  */
1031
  function ct_registration_errors($errors, $sanitized_user_login = null, $user_email = null) {
1032
  global $ct_agent_version, $ct_checkjs_register_form, $ct_session_request_id_label, $ct_session_register_ok_label, $bp, $ct_signup_done;
1033
-
1034
  // If there is an error already, let it do it's thing
1035
- if ($errors->get_error_code()) {
1036
  return $errors;
1037
  }
1038
 
3
  Plugin Name: Anti-spam by CleanTalk
4
  Plugin URI: http://cleantalk.org
5
  Description: Cloud antispam for comments, registrations and contacts. The plugin doesn't use CAPTCHA, Q&A, math, counting animals or quiz to stop spam bots.
6
+ Version: 2.52
7
  Author: СleanTalk <welcome@cleantalk.ru>
8
  Author URI: http://cleantalk.org
9
  */
10
 
11
  define('CLEANTALK_PLUGIN_DIR', plugin_dir_path(__FILE__));
12
 
13
+ $ct_agent_version = 'wordpress-252';
14
  $ct_plugin_name = 'Anti-spam by CleanTalk';
15
  $ct_checkjs_frm = 'ct_checkjs_frm';
16
  $ct_checkjs_register_form = 'ct_checkjs_register_form';
207
  function ct_def_options() {
208
  return array(
209
  'server' => 'http://moderate.cleantalk.org',
 
210
  'apikey' => __('enter key', 'cleantalk'),
211
  'autoPubRevelantMess' => '1',
212
  'registrations_test' => '1',
1004
  if ($wpmu && isset($errors['errors']->errors) && count($errors['errors']->errors) > 0) {
1005
  return $errors;
1006
  }
1007
+
1008
  $errors['errors'] = ct_registration_errors($errors['errors'], $sanitized_user_login, $user_email);
1009
 
1010
  // Show CleanTalk errors in user_name field
1030
  */
1031
  function ct_registration_errors($errors, $sanitized_user_login = null, $user_email = null) {
1032
  global $ct_agent_version, $ct_checkjs_register_form, $ct_session_request_id_label, $ct_session_register_ok_label, $bp, $ct_signup_done;
1033
+
1034
  // If there is an error already, let it do it's thing
1035
+ if (is_object($errors) && $errors->get_error_code()) {
1036
  return $errors;
1037
  }
1038
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: znaeff, shagimuratov
3
  Tags: anti spam, anti-spam, antispam, spam, spammers, captcha, comments, registration, contact form, blacklist, math, signup, formidable, bot, spam bots, spammy, s2member, wordpress, support, BuddyPress, bbpress, landing pages, fast secure contact form, WooCommerce, jetpack, cache
4
  Requires at least: 3.0
5
  Tested up to: 3.9.1
6
- Stable tag: 2.51
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -143,6 +143,9 @@ WordPress 3.0 at least. PHP 4, 5 with CURL or file_get_contents() function and e
143
  1. Anti spam stopped spam bot at the registration form.
144
 
145
  == Changelog ==
 
 
 
146
  = 2.51 2014-06-23 =
147
  * Added spam protection for registrations via plugin New User Approve by Josh Harrison. If the CleanTalk matched signup as spam this signup will be denied to placing in pending queue.
148
  * Added option "Use secure (SSL) connection to CleanTalk cloud". If the option enabled plugin will communicate with CleanTalk severs via 128bit encrypted data channel. So, if you have SSL protected webforms on website you can use this option to be sure that visitors personal data safely transmits to CleanTalk servers.
@@ -338,6 +341,9 @@ WordPress 3.0 at least. PHP 4, 5 with CURL or file_get_contents() function and e
338
  * First version
339
 
340
  == Upgrade Notice ==
 
 
 
341
  = 2.51 2014-06-23 =
342
  * Added spam protection for registrations via plugin New User Approve by Josh Harrison. If the CleanTalk matched signup as spam this signup will be denied to placing in pending queue.
343
  * Added option "Use secure (SSL) connection to CleanTalk cloud". If the option enabled plugin will communicate with CleanTalk severs via 128bit encrypted data channel. So, if you have SSL protected webforms on website you can use this option to be sure that visitors personal data safely transmits to CleanTalk servers.
@@ -430,3 +436,4 @@ WordPress 3.0 at least. PHP 4, 5 with CURL or file_get_contents() function and e
430
 
431
  = 2.4.13 2013-08-19 =
432
  * Fixed: "Fail connect to servers..." error on hostings with disabled 'allow_url_fopen' PHP option.
 
3
  Tags: anti spam, anti-spam, antispam, spam, spammers, captcha, comments, registration, contact form, blacklist, math, signup, formidable, bot, spam bots, spammy, s2member, wordpress, support, BuddyPress, bbpress, landing pages, fast secure contact form, WooCommerce, jetpack, cache
4
  Requires at least: 3.0
5
  Tested up to: 3.9.1
6
+ Stable tag: 2.52
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
143
  1. Anti spam stopped spam bot at the registration form.
144
 
145
  == Changelog ==
146
+ = 2.52 2014-06-25 =
147
+ * Fixed 'Fatal error: Call to a member function get_error_code()' issue with signups via BuddyPress.
148
+
149
  = 2.51 2014-06-23 =
150
  * Added spam protection for registrations via plugin New User Approve by Josh Harrison. If the CleanTalk matched signup as spam this signup will be denied to placing in pending queue.
151
  * Added option "Use secure (SSL) connection to CleanTalk cloud". If the option enabled plugin will communicate with CleanTalk severs via 128bit encrypted data channel. So, if you have SSL protected webforms on website you can use this option to be sure that visitors personal data safely transmits to CleanTalk servers.
341
  * First version
342
 
343
  == Upgrade Notice ==
344
+ = 2.52 2014-06-25 =
345
+ * Fixed 'Fatal error: Call to a member function get_error_code()' issue with signups via BuddyPress.
346
+
347
  = 2.51 2014-06-23 =
348
  * Added spam protection for registrations via plugin New User Approve by Josh Harrison. If the CleanTalk matched signup as spam this signup will be denied to placing in pending queue.
349
  * Added option "Use secure (SSL) connection to CleanTalk cloud". If the option enabled plugin will communicate with CleanTalk severs via 128bit encrypted data channel. So, if you have SSL protected webforms on website you can use this option to be sure that visitors personal data safely transmits to CleanTalk servers.
436
 
437
  = 2.4.13 2013-08-19 =
438
  * Fixed: "Fail connect to servers..." error on hostings with disabled 'allow_url_fopen' PHP option.
439
+