Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.132.3

Version Description

December 19 2019 = * Fix: The disable comments functionality.

Download this release

Release Info

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

Code changes from version 5.132.2 to 5.132.3

cleantalk.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Anti-Spam by CleanTalk
4
  Plugin URI: https://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.132.2
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: https://cleantalk.org
9
  Text Domain: cleantalk
@@ -103,6 +103,7 @@ if( !defined( 'CLEANTALK_PLUGIN_DIR' ) ){
103
 
104
  // Disabling comments
105
  if($apbct->settings['disable_comments__all'] || $apbct->settings['disable_comments__posts'] || $apbct->settings['disable_comments__pages'] || $apbct->settings['disable_comments__media']){
 
106
  require_once(CLEANTALK_PLUGIN_DIR . 'lib/Cleantalk/DisableComments.php');
107
  \Cleantalk\DisableComments::getInstance();
108
  }
3
  Plugin Name: Anti-Spam by CleanTalk
4
  Plugin URI: https://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.132.3
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: https://cleantalk.org
9
  Text Domain: cleantalk
103
 
104
  // Disabling comments
105
  if($apbct->settings['disable_comments__all'] || $apbct->settings['disable_comments__posts'] || $apbct->settings['disable_comments__pages'] || $apbct->settings['disable_comments__media']){
106
+ require_once(CLEANTALK_PLUGIN_DIR . 'lib/Cleantalk/Templates/Singleton.php');
107
  require_once(CLEANTALK_PLUGIN_DIR . 'lib/Cleantalk/DisableComments.php');
108
  \Cleantalk\DisableComments::getInstance();
109
  }
inc/cleantalk-settings.php CHANGED
@@ -195,19 +195,19 @@ function apbct_settings__set_fileds( $fields ){
195
  ),
196
  ),
197
  'disable_comments__posts' => array(
198
- 'title' => __( 'Disable comments for all "posts"', 'cleantalk' ),
199
  'class' => 'apbct_settings-field_wrapper--sub',
200
  'parent' => 'disable_comments__all',
201
  'reverse_trigger' => true,
202
  ),
203
  'disable_comments__pages' => array(
204
- 'title' => __( 'Disable comments for all "pages"', 'cleantalk' ),
205
  'class' => 'apbct_settings-field_wrapper--sub',
206
  'parent' => 'disable_comments__all',
207
  'reverse_trigger' => true,
208
  ),
209
  'disable_comments__media' => array(
210
- 'title' => __( 'Disable comments for all "media"', 'cleantalk' ),
211
  'class' => 'apbct_settings-field_wrapper--sub',
212
  'parent' => 'disable_comments__all',
213
  'reverse_trigger' => true,
195
  ),
196
  ),
197
  'disable_comments__posts' => array(
198
+ 'title' => __( 'Disable comments for all posts', 'cleantalk' ),
199
  'class' => 'apbct_settings-field_wrapper--sub',
200
  'parent' => 'disable_comments__all',
201
  'reverse_trigger' => true,
202
  ),
203
  'disable_comments__pages' => array(
204
+ 'title' => __( 'Disable comments for all pages', 'cleantalk' ),
205
  'class' => 'apbct_settings-field_wrapper--sub',
206
  'parent' => 'disable_comments__all',
207
  'reverse_trigger' => true,
208
  ),
209
  'disable_comments__media' => array(
210
+ 'title' => __( 'Disable comments for all media', 'cleantalk' ),
211
  'class' => 'apbct_settings-field_wrapper--sub',
212
  'parent' => 'disable_comments__all',
213
  'reverse_trigger' => true,
lib/Cleantalk/Templates/Singleton.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Cleantalk\Templates;
4
+
5
+ trait Singleton{
6
+
7
+ static $instance;
8
+
9
+ public function __construct(){}
10
+ public function __wakeup(){}
11
+ public function __clone(){}
12
+
13
+ /**
14
+ * Constructor
15
+ * @return $this
16
+ */
17
+ public static function getInstance(){
18
+ if (!isset(static::$instance)) {
19
+ static::$instance = new static;
20
+ static::$instance->init();
21
+ }
22
+ return static::$instance;
23
+ }
24
+
25
+ /**
26
+ * Alternative constructor
27
+ */
28
+ private function init(){
29
+
30
+ }
31
+
32
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: spam, antispam, woocommerce, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 5.3
6
  Requires PHP: 5.4
7
- Stable tag: 5.132.2
8
  License: GPLv2
9
 
10
  Spam protection, antispam, firewall, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
@@ -579,6 +579,9 @@ If your website has forms that send data to external sources, you can enable opt
579
  10. Website's options.
580
 
581
  == Changelog ==
 
 
 
582
  = 5.132.2 December 17 2019 =
583
  * Fix: The disable comments functionality.
584
 
4
  Requires at least: 3.0
5
  Tested up to: 5.3
6
  Requires PHP: 5.4
7
+ Stable tag: 5.132.3
8
  License: GPLv2
9
 
10
  Spam protection, antispam, firewall, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
579
  10. Website's options.
580
 
581
  == Changelog ==
582
+ = 5.132.3 December 19 2019 =
583
+ * Fix: The disable comments functionality.
584
+
585
  = 5.132.2 December 17 2019 =
586
  * Fix: The disable comments functionality.
587