Version Description
Download this release
Release Info
Developer | wpdevteam |
Plugin | Disable Comments |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 2.2.1
- assets/js/disable-comments-settings-scripts.js +6 -6
- disable-comments.php +14 -6
- languages/disable-comments.pot +51 -51
- readme.txt +5 -2
- views/partials/_delete.php +3 -1
- views/partials/_disable.php +3 -1
assets/js/disable-comments-settings-scripts.js
CHANGED
@@ -179,12 +179,12 @@ jQuery(document).ready(function ($) {
|
|
179 |
reverseButtons: true,
|
180 |
}).then(function(result){
|
181 |
if (result.isConfirmed) {
|
182 |
-
Swal.fire({
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
});
|
188 |
var data = {
|
189 |
action: disableCommentsObj.delete_action,
|
190 |
nonce: disableCommentsObj._nonce,
|
179 |
reverseButtons: true,
|
180 |
}).then(function(result){
|
181 |
if (result.isConfirmed) {
|
182 |
+
// Swal.fire({
|
183 |
+
// icon: "info",
|
184 |
+
// title: "Deleting comments...",
|
185 |
+
// text: "Please wait.",
|
186 |
+
// showConfirmButton: false,
|
187 |
+
// });
|
188 |
var data = {
|
189 |
action: disableCommentsObj.delete_action,
|
190 |
nonce: disableCommentsObj._nonce,
|
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.2.
|
8 |
* Author: WPDeveloper
|
9 |
* Author URI: https://wpdeveloper.net
|
10 |
* License: GPL-3.0+
|
@@ -37,7 +37,7 @@ class Disable_Comments
|
|
37 |
|
38 |
function __construct()
|
39 |
{
|
40 |
-
define('DC_VERSION', '2.2.
|
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/');
|
@@ -62,7 +62,9 @@ class Disable_Comments
|
|
62 |
if ($this->networkactive && (is_network_admin() || $this->sitewide_settings !== '1')) {
|
63 |
$this->options = get_site_option('disable_comments_options', array());
|
64 |
if(!isset($this->options['disabled_sites'])){
|
65 |
-
$sites = get_sites(
|
|
|
|
|
66 |
$this->options['disabled_sites'] = array_map(function($site){
|
67 |
return $site->blog_id;
|
68 |
}, $sites);
|
@@ -664,7 +666,9 @@ class Disable_Comments
|
|
664 |
global $wpdb;
|
665 |
if ( is_network_admin() && function_exists( 'get_sites' ) && class_exists( 'WP_Site_Query' ) ) {
|
666 |
$count = 0;
|
667 |
-
$sites = get_sites(
|
|
|
|
|
668 |
foreach ( $sites as $site ) {
|
669 |
switch_to_blog( $site->blog_id );
|
670 |
$count += $wpdb->get_var("SELECT count(comment_id) from $wpdb->comments");
|
@@ -680,7 +684,9 @@ class Disable_Comments
|
|
680 |
public function get_all_comment_types(){
|
681 |
if($this->networkactive && is_network_admin()){
|
682 |
$comment_types = [];
|
683 |
-
$sites = get_sites(
|
|
|
|
|
684 |
foreach ( $sites as $site ) {
|
685 |
switch_to_blog( $site->blog_id );
|
686 |
$comment_types = array_merge($this->_get_all_comment_types(), $comment_types);
|
@@ -829,7 +835,9 @@ class Disable_Comments
|
|
829 |
|
830 |
if (($this->is_CLI && !empty($_args)) || wp_verify_nonce($nonce, 'disable_comments_save_settings')) {
|
831 |
if ( !empty($formArray['is_network_admin']) && function_exists( 'get_sites' ) && class_exists( 'WP_Site_Query' ) ) {
|
832 |
-
$sites = get_sites(
|
|
|
|
|
833 |
foreach ( $sites as $site ) {
|
834 |
if( !empty($formArray['disabled_sites']) && in_array($site->blog_id, $formArray['disabled_sites'])){
|
835 |
switch_to_blog( $site->blog_id );
|
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.2.1
|
8 |
* Author: WPDeveloper
|
9 |
* Author URI: https://wpdeveloper.net
|
10 |
* License: GPL-3.0+
|
37 |
|
38 |
function __construct()
|
39 |
{
|
40 |
+
define('DC_VERSION', '2.2.1');
|
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/');
|
62 |
if ($this->networkactive && (is_network_admin() || $this->sitewide_settings !== '1')) {
|
63 |
$this->options = get_site_option('disable_comments_options', array());
|
64 |
if(!isset($this->options['disabled_sites'])){
|
65 |
+
$sites = get_sites([
|
66 |
+
'number' => 0,
|
67 |
+
]);
|
68 |
$this->options['disabled_sites'] = array_map(function($site){
|
69 |
return $site->blog_id;
|
70 |
}, $sites);
|
666 |
global $wpdb;
|
667 |
if ( is_network_admin() && function_exists( 'get_sites' ) && class_exists( 'WP_Site_Query' ) ) {
|
668 |
$count = 0;
|
669 |
+
$sites = get_sites([
|
670 |
+
'number' => 0,
|
671 |
+
]);
|
672 |
foreach ( $sites as $site ) {
|
673 |
switch_to_blog( $site->blog_id );
|
674 |
$count += $wpdb->get_var("SELECT count(comment_id) from $wpdb->comments");
|
684 |
public function get_all_comment_types(){
|
685 |
if($this->networkactive && is_network_admin()){
|
686 |
$comment_types = [];
|
687 |
+
$sites = get_sites([
|
688 |
+
'number' => 0,
|
689 |
+
]);
|
690 |
foreach ( $sites as $site ) {
|
691 |
switch_to_blog( $site->blog_id );
|
692 |
$comment_types = array_merge($this->_get_all_comment_types(), $comment_types);
|
835 |
|
836 |
if (($this->is_CLI && !empty($_args)) || wp_verify_nonce($nonce, 'disable_comments_save_settings')) {
|
837 |
if ( !empty($formArray['is_network_admin']) && function_exists( 'get_sites' ) && class_exists( 'WP_Site_Query' ) ) {
|
838 |
+
$sites = get_sites([
|
839 |
+
'number' => 0,
|
840 |
+
]);
|
841 |
foreach ( $sites as $site ) {
|
842 |
if( !empty($formArray['disabled_sites']) && in_array($site->blog_id, $formArray['disabled_sites'])){
|
843 |
switch_to_blog( $site->blog_id );
|
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.2.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/disable-comments\n"
|
7 |
-
"POT-Creation-Date: 2021-09-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -24,11 +24,11 @@ msgstr ""
|
|
24 |
"X-Textdomain-Support: yes\n"
|
25 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
27 |
-
#: disable-comments.php:
|
28 |
msgid "Want to help make Disable Comments even better?"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: disable-comments.php:
|
32 |
msgid ""
|
33 |
"We collect non-sensitive diagnostic data and plugin usage information. Your "
|
34 |
"site URL, WordPress & PHP version, plugins & themes and email address to "
|
@@ -37,16 +37,16 @@ msgid ""
|
|
37 |
"I promise."
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: disable-comments.php:
|
41 |
#. translators: %s: WordPress version no.
|
42 |
msgid "Disable Comments requires WordPress version %s or greater."
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: disable-comments.php:
|
46 |
msgid "Comments are closed."
|
47 |
msgstr ""
|
48 |
|
49 |
-
#: disable-comments.php:
|
50 |
#. translators: %s: disabled post types.
|
51 |
msgid ""
|
52 |
"Note: The <em>Disable Comments</em> plugin is currently active, and "
|
@@ -54,11 +54,11 @@ msgid ""
|
|
54 |
"not be applicable for those post types."
|
55 |
msgstr ""
|
56 |
|
57 |
-
#: disable-comments.php:
|
58 |
msgid ", "
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: disable-comments.php:
|
62 |
#. translators: %s: URL to Disabled Comment settings page.
|
63 |
msgid ""
|
64 |
"The <strong>Disable Comments</strong> plugin is active, but isn't "
|
@@ -66,31 +66,31 @@ msgid ""
|
|
66 |
"page</a> to choose which post types to disable comments on."
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: disable-comments.php:
|
70 |
msgid "Settings"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: disable-comments.php:
|
74 |
msgid "Tools"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: disable-comments.php:
|
78 |
msgid "Delete Comments"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: disable-comments.php:
|
82 |
msgid "Default (no type)"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: disable-comments.php:
|
86 |
msgid "Saved"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: disable-comments.php:
|
90 |
msgid "All comments have been deleted"
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: disable-comments.php:
|
94 |
msgid "Internal error occured. Please try again later."
|
95 |
msgstr ""
|
96 |
|
@@ -189,44 +189,44 @@ msgstr ""
|
|
189 |
msgid "Disable Comments via REST API. "
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: views/partials/_delete.php:
|
193 |
-
#: views/partials/_disable.php:19 views/partials/_disable.php:
|
194 |
-
#: views/partials/_disable.php:
|
195 |
msgid "Note:"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: views/partials/_delete.php:
|
199 |
msgid "Select your sub-sites where you want to delete comments."
|
200 |
msgstr ""
|
201 |
|
202 |
-
#: views/partials/_delete.php:
|
203 |
msgid ""
|
204 |
"These settings will permanently delete comments for your entire website, or "
|
205 |
"for specific posts and comment types."
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: views/partials/_delete.php:
|
209 |
msgid "Everywhere:"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: views/partials/_delete.php:
|
213 |
msgid "Permanently delete all comments on your WordPress website"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: views/partials/_delete.php:
|
217 |
-
#: views/partials/_delete.php:
|
218 |
msgid "Warnings:"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: views/partials/_delete.php:
|
222 |
msgid "This will permanently delete comments everywhere on your website."
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: views/partials/_delete.php:
|
226 |
msgid "On Certain Post Types:"
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: views/partials/_delete.php:
|
230 |
msgid ""
|
231 |
"Only the built-in post types appear above. If you want to disable comments "
|
232 |
"on other custom post types on the entire network, you can supply a "
|
@@ -234,32 +234,32 @@ msgid ""
|
|
234 |
"post type)."
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: views/partials/_delete.php:
|
238 |
msgid "Custom post types:"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: views/partials/_delete.php:
|
242 |
msgid ""
|
243 |
"This will remove existing comment entries for the selected post type(s) in "
|
244 |
"the database and cannot be reverted without a database backups."
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: views/partials/_delete.php:
|
248 |
msgid "Delete Certain Comment Types:"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: views/partials/_delete.php:
|
252 |
msgid ""
|
253 |
"Deleting comments by comment type will remove existing comment entries of "
|
254 |
"the selected comment type(s) in the database and cannot be reverted without "
|
255 |
"a database backup."
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: views/partials/_delete.php:
|
259 |
msgid "Total Comments:"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: views/partials/_delete.php:
|
263 |
msgid "No comments are available for deletion."
|
264 |
msgstr ""
|
265 |
|
@@ -269,13 +269,13 @@ msgid ""
|
|
269 |
"types of posts."
|
270 |
msgstr ""
|
271 |
|
272 |
-
#: views/partials/_disable.php:14 views/partials/_disable.php:
|
273 |
-
#: views/partials/_disable.php:
|
274 |
msgid "On"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: views/partials/_disable.php:15 views/partials/_disable.php:
|
278 |
-
#: views/partials/_disable.php:
|
279 |
msgid "Off"
|
280 |
msgstr ""
|
281 |
|
@@ -285,33 +285,33 @@ msgid ""
|
|
285 |
"Comments” settings individually on every website in the network."
|
286 |
msgstr ""
|
287 |
|
288 |
-
#: views/partials/_disable.php:
|
289 |
msgid ""
|
290 |
"Enable Site Wise settings if you want to configure “Disable Comments” "
|
291 |
"settings individually on every website."
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: views/partials/_disable.php:
|
295 |
msgid ""
|
296 |
"This site will be controlled by the network admin until you click the "
|
297 |
"\"Save Changes\" button."
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: views/partials/_disable.php:
|
301 |
msgid "Disable comments globally on your entire website"
|
302 |
msgstr ""
|
303 |
|
304 |
-
#: views/partials/_disable.php:
|
305 |
msgid ""
|
306 |
"This will disable comments from every page and post on your website. Use "
|
307 |
"this setting if you do not want to show comments anywhere."
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: views/partials/_disable.php:
|
311 |
msgid "On Specific Post Types:"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: views/partials/_disable.php:
|
315 |
msgid ""
|
316 |
"Disabling comments will also disable trackbacks and pingbacks. All "
|
317 |
"comment-related fields will also be hidden from the edit/quick-edit screens "
|
@@ -319,31 +319,31 @@ msgid ""
|
|
319 |
"posts. Comments will be visible on all other post types."
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: views/partials/_disable.php:
|
323 |
msgid "Disable Comments With API"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: views/partials/_disable.php:
|
327 |
msgid ""
|
328 |
"You can disable comments made on your website using WordPress "
|
329 |
"specifications."
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: views/partials/_disable.php:
|
333 |
msgid "Disable Comments via XML-RPC"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: views/partials/_disable.php:
|
337 |
msgid "Disable Comments via REST API"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: views/partials/_disable.php:
|
341 |
msgid ""
|
342 |
"Turning on these settings will disable any comments made on your website "
|
343 |
"via XML-RPC or REST API specifications."
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: views/partials/_disable.php:
|
347 |
msgid "Save Changes"
|
348 |
msgstr ""
|
349 |
|
@@ -426,7 +426,7 @@ msgstr ""
|
|
426 |
msgid "https://wpdeveloper.net"
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: disable-comments.php:
|
430 |
msgctxt "settings menu title"
|
431 |
msgid "Disable Comments"
|
432 |
msgstr ""
|
2 |
# This file is distributed under the GPL-3.0+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Disable Comments 2.2.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/disable-comments\n"
|
7 |
+
"POT-Creation-Date: 2021-09-26 11:49:56+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
24 |
"X-Textdomain-Support: yes\n"
|
25 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
27 |
+
#: disable-comments.php:147
|
28 |
msgid "Want to help make Disable Comments even better?"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: disable-comments.php:148
|
32 |
msgid ""
|
33 |
"We collect non-sensitive diagnostic data and plugin usage information. Your "
|
34 |
"site URL, WordPress & PHP version, plugins & themes and email address to "
|
37 |
"I promise."
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: disable-comments.php:160
|
41 |
#. translators: %s: WordPress version no.
|
42 |
msgid "Disable Comments requires WordPress version %s or greater."
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: disable-comments.php:405 disable-comments.php:548 disable-comments.php:555
|
46 |
msgid "Comments are closed."
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: disable-comments.php:507
|
50 |
#. translators: %s: disabled post types.
|
51 |
msgid ""
|
52 |
"Note: The <em>Disable Comments</em> plugin is currently active, and "
|
54 |
"not be applicable for those post types."
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: disable-comments.php:507
|
58 |
msgid ", "
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: disable-comments.php:539
|
62 |
#. translators: %s: URL to Disabled Comment settings page.
|
63 |
msgid ""
|
64 |
"The <strong>Disable Comments</strong> plugin is active, but isn't "
|
66 |
"page</a> to choose which post types to disable comments on."
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: disable-comments.php:628 views/partials/_disable.php:3
|
70 |
msgid "Settings"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: disable-comments.php:629
|
74 |
msgid "Tools"
|
75 |
msgstr ""
|
76 |
|
77 |
+
#: disable-comments.php:648 views/partials/_delete.php:80
|
78 |
msgid "Delete Comments"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: disable-comments.php:711
|
82 |
msgid "Default (no type)"
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: disable-comments.php:815
|
86 |
msgid "Saved"
|
87 |
msgstr ""
|
88 |
|
89 |
+
#: disable-comments.php:884 disable-comments.php:918 disable-comments.php:941
|
90 |
msgid "All comments have been deleted"
|
91 |
msgstr ""
|
92 |
|
93 |
+
#: disable-comments.php:886 disable-comments.php:890
|
94 |
msgid "Internal error occured. Please try again later."
|
95 |
msgstr ""
|
96 |
|
189 |
msgid "Disable Comments via REST API. "
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: views/partials/_delete.php:28 views/partials/_delete.php:32
|
193 |
+
#: views/partials/_disable.php:19 views/partials/_disable.php:41
|
194 |
+
#: views/partials/_disable.php:46 views/partials/_disable.php:77
|
195 |
msgid "Note:"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: views/partials/_delete.php:28
|
199 |
msgid "Select your sub-sites where you want to delete comments."
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: views/partials/_delete.php:32
|
203 |
msgid ""
|
204 |
"These settings will permanently delete comments for your entire website, or "
|
205 |
"for specific posts and comment types."
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: views/partials/_delete.php:35 views/partials/_disable.php:53
|
209 |
msgid "Everywhere:"
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: views/partials/_delete.php:35
|
213 |
msgid "Permanently delete all comments on your WordPress website"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: views/partials/_delete.php:36 views/partials/_delete.php:59
|
217 |
+
#: views/partials/_delete.php:72 views/partials/_disable.php:54
|
218 |
msgid "Warnings:"
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: views/partials/_delete.php:36
|
222 |
msgid "This will permanently delete comments everywhere on your website."
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: views/partials/_delete.php:40
|
226 |
msgid "On Certain Post Types:"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: views/partials/_delete.php:55 views/partials/_disable.php:73
|
230 |
msgid ""
|
231 |
"Only the built-in post types appear above. If you want to disable comments "
|
232 |
"on other custom post types on the entire network, you can supply a "
|
234 |
"post type)."
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: views/partials/_delete.php:56 views/partials/_disable.php:74
|
238 |
msgid "Custom post types:"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: views/partials/_delete.php:59
|
242 |
msgid ""
|
243 |
"This will remove existing comment entries for the selected post type(s) in "
|
244 |
"the database and cannot be reverted without a database backups."
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: views/partials/_delete.php:63
|
248 |
msgid "Delete Certain Comment Types:"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: views/partials/_delete.php:72
|
252 |
msgid ""
|
253 |
"Deleting comments by comment type will remove existing comment entries of "
|
254 |
"the selected comment type(s) in the database and cannot be reverted without "
|
255 |
"a database backup."
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: views/partials/_delete.php:74
|
259 |
msgid "Total Comments:"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: views/partials/_delete.php:218
|
263 |
msgid "No comments are available for deletion."
|
264 |
msgstr ""
|
265 |
|
269 |
"types of posts."
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: views/partials/_disable.php:14 views/partials/_disable.php:89
|
273 |
+
#: views/partials/_disable.php:99
|
274 |
msgid "On"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: views/partials/_disable.php:15 views/partials/_disable.php:90
|
278 |
+
#: views/partials/_disable.php:100
|
279 |
msgid "Off"
|
280 |
msgstr ""
|
281 |
|
285 |
"Comments” settings individually on every website in the network."
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: views/partials/_disable.php:41
|
289 |
msgid ""
|
290 |
"Enable Site Wise settings if you want to configure “Disable Comments” "
|
291 |
"settings individually on every website."
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: views/partials/_disable.php:46
|
295 |
msgid ""
|
296 |
"This site will be controlled by the network admin until you click the "
|
297 |
"\"Save Changes\" button."
|
298 |
msgstr ""
|
299 |
|
300 |
+
#: views/partials/_disable.php:53
|
301 |
msgid "Disable comments globally on your entire website"
|
302 |
msgstr ""
|
303 |
|
304 |
+
#: views/partials/_disable.php:54
|
305 |
msgid ""
|
306 |
"This will disable comments from every page and post on your website. Use "
|
307 |
"this setting if you do not want to show comments anywhere."
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: views/partials/_disable.php:58
|
311 |
msgid "On Specific Post Types:"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: views/partials/_disable.php:77
|
315 |
msgid ""
|
316 |
"Disabling comments will also disable trackbacks and pingbacks. All "
|
317 |
"comment-related fields will also be hidden from the edit/quick-edit screens "
|
319 |
"posts. Comments will be visible on all other post types."
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: views/partials/_disable.php:81
|
323 |
msgid "Disable Comments With API"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: views/partials/_disable.php:82
|
327 |
msgid ""
|
328 |
"You can disable comments made on your website using WordPress "
|
329 |
"specifications."
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: views/partials/_disable.php:92
|
333 |
msgid "Disable Comments via XML-RPC"
|
334 |
msgstr ""
|
335 |
|
336 |
+
#: views/partials/_disable.php:101
|
337 |
msgid "Disable Comments via REST API"
|
338 |
msgstr ""
|
339 |
|
340 |
+
#: views/partials/_disable.php:105
|
341 |
msgid ""
|
342 |
"Turning on these settings will disable any comments made on your website "
|
343 |
"via XML-RPC or REST API specifications."
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: views/partials/_disable.php:110
|
347 |
msgid "Save Changes"
|
348 |
msgstr ""
|
349 |
|
426 |
msgid "https://wpdeveloper.net"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: disable-comments.php:638
|
430 |
msgctxt "settings menu title"
|
431 |
msgid "Disable Comments"
|
432 |
msgstr ""
|
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.8
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.2.
|
9 |
License: GPL-3.0-or-later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -190,6 +190,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
190 |
and this project adheres to [Semantic Versioning](http://semver.org/).
|
191 |
This will be maiintained from August 19, 2020 - @asif2bd
|
192 |
|
|
|
|
|
|
|
193 |
= [2.2.0] - 2021-09-22 =
|
194 |
* New Feature: Configure Disable Comments on Subsites from Main Network in Multisite Network.
|
195 |
* Improvement: UX Improvement.
|
@@ -367,4 +370,4 @@ This will be maiintained from August 19, 2020 - @asif2bd
|
|
367 |
|
368 |
== Upgrade Notice ==
|
369 |
|
370 |
-
[
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.2.1
|
9 |
License: GPL-3.0-or-later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
190 |
and this project adheres to [Semantic Versioning](http://semver.org/).
|
191 |
This will be maiintained from August 19, 2020 - @asif2bd
|
192 |
|
193 |
+
= [2.2.1] - 2021-09-26 =
|
194 |
+
* Fixed: 100+ subsites limit issue in multisite network
|
195 |
+
|
196 |
= [2.2.0] - 2021-09-22 =
|
197 |
* New Feature: Configure Disable Comments on Subsites from Main Network in Multisite Network.
|
198 |
* Improvement: UX Improvement.
|
370 |
|
371 |
== Upgrade Notice ==
|
372 |
|
373 |
+
[Minor Update] 100+ subsites limit issue in multisite network
|
views/partials/_delete.php
CHANGED
@@ -11,7 +11,9 @@
|
|
11 |
<div class="disabled__sites delete__checklist">
|
12 |
<?php
|
13 |
$disabled_site_options = isset($this->options['disabled_sites']) ? $this->options['disabled_sites'] : [];
|
14 |
-
$sub_sites = get_sites(
|
|
|
|
|
15 |
foreach ( $sub_sites as $sub_site ) {
|
16 |
$sub_site_id = $sub_site->blog_id;
|
17 |
$blog = get_blog_details($sub_site_id);
|
11 |
<div class="disabled__sites delete__checklist">
|
12 |
<?php
|
13 |
$disabled_site_options = isset($this->options['disabled_sites']) ? $this->options['disabled_sites'] : [];
|
14 |
+
$sub_sites = get_sites([
|
15 |
+
'number' => 0,
|
16 |
+
]);
|
17 |
foreach ( $sub_sites as $sub_site ) {
|
18 |
$sub_site_id = $sub_site->blog_id;
|
19 |
$blog = get_blog_details($sub_site_id);
|
views/partials/_disable.php
CHANGED
@@ -24,7 +24,9 @@
|
|
24 |
<div class="disabled__sites remove__checklist">
|
25 |
<?php
|
26 |
$disabled_site_options = isset($this->options['disabled_sites']) ? $this->options['disabled_sites'] : [];
|
27 |
-
$sub_sites = get_sites(
|
|
|
|
|
28 |
foreach ( $sub_sites as $sub_site ) {
|
29 |
$sub_site_id = $sub_site->blog_id;
|
30 |
$blog = get_blog_details($sub_site_id);
|
24 |
<div class="disabled__sites remove__checklist">
|
25 |
<?php
|
26 |
$disabled_site_options = isset($this->options['disabled_sites']) ? $this->options['disabled_sites'] : [];
|
27 |
+
$sub_sites = get_sites([
|
28 |
+
'number' => 0,
|
29 |
+
]);
|
30 |
foreach ( $sub_sites as $sub_site ) {
|
31 |
$sub_site_id = $sub_site->blog_id;
|
32 |
$blog = get_blog_details($sub_site_id);
|