Disable Comments - Version 2.3.4

Version Description

Download this release

Release Info

Developer wpdevteam
Plugin Icon 128x128 Disable Comments
Version 2.3.4
Comparing to
See all releases

Code changes from version 2.3.3 to 2.3.4

disable-comments.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Disable Comments
5
  * Plugin URI: https://wordpress.org/plugins/disable-comments/
6
  * Description: Allows administrators to globally disable comments on their site. Comments can be disabled according to post type. You could bulk delete comments using Tools.
7
- * Version: 2.3.3
8
  * Author: WPDeveloper
9
  * Author URI: https://wpdeveloper.com
10
  * License: GPL-3.0+
@@ -37,7 +37,7 @@ class Disable_Comments
37
 
38
  function __construct()
39
  {
40
- define('DC_VERSION', '2.3.3');
41
  define('DC_PLUGIN_SLUG', 'disable_comments_settings');
42
  define('DC_PLUGIN_ROOT_PATH', dirname(__FILE__));
43
  define('DC_PLUGIN_VIEWS_PATH', DC_PLUGIN_ROOT_PATH . '/views/');
@@ -111,7 +111,7 @@ class Disable_Comments
111
  }
112
 
113
  public function is_network_admin(){
114
- if (is_network_admin() || defined('DOING_AJAX') && DOING_AJAX && is_multisite() && preg_match('#^'.network_admin_url().'#i',$_SERVER['HTTP_REFERER'])) {
115
  return true;
116
  }
117
  return false;
4
  * Plugin Name: Disable Comments
5
  * Plugin URI: https://wordpress.org/plugins/disable-comments/
6
  * Description: Allows administrators to globally disable comments on their site. Comments can be disabled according to post type. You could bulk delete comments using Tools.
7
+ * Version: 2.3.4
8
  * Author: WPDeveloper
9
  * Author URI: https://wpdeveloper.com
10
  * License: GPL-3.0+
37
 
38
  function __construct()
39
  {
40
+ define('DC_VERSION', '2.3.4');
41
  define('DC_PLUGIN_SLUG', 'disable_comments_settings');
42
  define('DC_PLUGIN_ROOT_PATH', dirname(__FILE__));
43
  define('DC_PLUGIN_VIEWS_PATH', DC_PLUGIN_ROOT_PATH . '/views/');
111
  }
112
 
113
  public function is_network_admin(){
114
+ if (is_network_admin() || isset($_SERVER['HTTP_REFERER']) && defined('DOING_AJAX') && DOING_AJAX && is_multisite() && preg_match('#^'.network_admin_url().'#i',$_SERVER['HTTP_REFERER'])) {
115
  return true;
116
  }
117
  return false;
languages/disable-comments.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPL-3.0+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Disable Comments 2.3.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/disable-comments\n"
7
- "POT-Creation-Date: 2022-01-25 06:31:46+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the GPL-3.0+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Disable Comments 2.3.4\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/disable-comments\n"
7
+ "POT-Creation-Date: 2022-03-28 05:58:59+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: comments, delete comments, disable comments, spam comment, disable, stop s
5
  Requires at least: 5.0
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
- Stable tag: 2.3.3
9
  License: GPL-3.0-or-later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -123,7 +123,7 @@ Consider checking out our other WordPress solutions & boost your WordPress websi
123
 
124
  📄 [EmbedPress](https://wordpress.org/plugins/embedpress/): EmbedPress lets you embed anything including videos, images, posts, audio, maps and upload PDF, DOC, PPT etc.
125
 
126
- ☁ [Templately](https://wordpress.org/plugins/templately/): 1000+ Free templates library for Elementor & Gutenberg along with the cloud collaboration for WordPress.
127
 
128
  📚 [BetterDocs](https://wordpress.org/plugins/betterdocs/): Best Documentation & Knowledge Base Plugin for WordPress reduce manual support tickets & improve user experience.
129
 
@@ -183,6 +183,7 @@ Go to the tools page for the Disable Comments plugin and utlize the Delete Comme
183
 
184
  1. Setting Screen for Disable Comments
185
  2. Delete Comments under Tools menu.
 
186
 
187
 
188
  == Changelog ==
@@ -191,6 +192,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
191
  and this project adheres to [Semantic Versioning](http://semver.org/).
192
  This will be maiintained from August 19, 2020 - @asif2bd
193
 
 
 
 
194
  = [2.3.3] - 2022-01-25 =
195
  * Added: WordPress 5.9 compatibility added.
196
 
5
  Requires at least: 5.0
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
+ Stable tag: 2.3.4
9
  License: GPL-3.0-or-later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
123
 
124
  📄 [EmbedPress](https://wordpress.org/plugins/embedpress/): EmbedPress lets you embed anything including videos, images, posts, audio, maps and upload PDF, DOC, PPT etc.
125
 
126
+ ☁ [Templately](https://wordpress.org/plugins/templately/): 1200+ Free templates library for Elementor & Gutenberg along with the cloud collaboration for WordPress.
127
 
128
  📚 [BetterDocs](https://wordpress.org/plugins/betterdocs/): Best Documentation & Knowledge Base Plugin for WordPress reduce manual support tickets & improve user experience.
129
 
183
 
184
  1. Setting Screen for Disable Comments
185
  2. Delete Comments under Tools menu.
186
+ 3. Multisite Network support
187
 
188
 
189
  == Changelog ==
192
  and this project adheres to [Semantic Versioning](http://semver.org/).
193
  This will be maiintained from August 19, 2020 - @asif2bd
194
 
195
+ = [2.3.4] - 2022-03-28 =
196
+ * Fixed: PHP Warning in Multisite Network.
197
+
198
  = [2.3.3] - 2022-01-25 =
199
  * Added: WordPress 5.9 compatibility added.
200