Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.124.1

Version Description

August 8 2019 = * Fix: Error on PHP 5.3.

Download this release

Release Info

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

Code changes from version 5.124 to 5.124.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.124
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.124.1
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  Text Domain: cleantalk
lib/CleantalkBase/CleantalkDB.php CHANGED
@@ -17,7 +17,7 @@ namespace CleantalkBase;
17
  class CleantalkDB
18
  {
19
 
20
- private static $instances = [];
21
 
22
  /**
23
  * @var string Query string
@@ -45,14 +45,12 @@ class CleantalkDB
45
 
46
  public static function getInstance()
47
  {
48
- $cls = static::class;
49
- if (!isset(static::$instances[$cls])) {
50
- $instance = new static;
51
- static::$instances[$cls] = $instance;
52
- $instance->init();
53
  }
54
 
55
- return static::$instances[$cls];
56
  }
57
 
58
  /**
17
  class CleantalkDB
18
  {
19
 
20
+ private static $instance;
21
 
22
  /**
23
  * @var string Query string
45
 
46
  public static function getInstance()
47
  {
48
+ if (!isset(static::$instance)) {
49
+ static::$instance = new static;
50
+ static::$instance->init();
 
 
51
  }
52
 
53
+ return static::$instance;
54
  }
55
 
56
  /**
lib/CleantalkDB.php CHANGED
@@ -17,7 +17,7 @@
17
  class CleantalkDB extends CleantalkBase\CleantalkDB
18
  {
19
 
20
- private static $instances = [];
21
 
22
  /**
23
  * @var string Query string
@@ -45,14 +45,12 @@ class CleantalkDB extends CleantalkBase\CleantalkDB
45
 
46
  public static function getInstance()
47
  {
48
- $cls = static::class;
49
- if (!isset(static::$instances[$cls])) {
50
- $instance = new static;
51
- static::$instances[$cls] = $instance;
52
- $instance->init();
53
  }
54
 
55
- return static::$instances[$cls];
56
  }
57
 
58
  private function init(){
17
  class CleantalkDB extends CleantalkBase\CleantalkDB
18
  {
19
 
20
+ private static $instance;
21
 
22
  /**
23
  * @var string Query string
45
 
46
  public static function getInstance()
47
  {
48
+ if (!isset(static::$instance)) {
49
+ static::$instance = new static;
50
+ static::$instance->init();
 
 
51
  }
52
 
53
+ return static::$instance;
54
  }
55
 
56
  private function init(){
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.124
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
@@ -575,6 +575,9 @@ If your website has forms that send data to external sources, you can enable opt
575
  10. Website's options.
576
 
577
  == Changelog ==
 
 
 
578
  = 5.124 August 8 2019 =
579
  * Spam protection improved.
580
  * Fix: SpamFireWall local database counter on Multisite.
@@ -1966,6 +1969,9 @@ If your website has forms that send data to external sources, you can enable opt
1966
  * First version
1967
 
1968
  == Upgrade Notice ==
 
 
 
1969
  = 5.124 August 8 2019 =
1970
  * Spam protection improved.
1971
  * Fix: SpamFireWall local database counter on Multisite.
3
  Tags: spam, antispam, protection, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 5.3
6
+ Stable tag: 5.124.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.
575
  10. Website's options.
576
 
577
  == Changelog ==
578
+ = 5.124.1 August 8 2019 =
579
+ * Fix: Error on PHP 5.3.
580
+
581
  = 5.124 August 8 2019 =
582
  * Spam protection improved.
583
  * Fix: SpamFireWall local database counter on Multisite.
1969
  * First version
1970
 
1971
  == Upgrade Notice ==
1972
+ = 5.124.1 August 8 2019 =
1973
+ * Fix: Error on PHP 5.3.
1974
+
1975
  = 5.124 August 8 2019 =
1976
  * Spam protection improved.
1977
  * Fix: SpamFireWall local database counter on Multisite.