We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36de436 commit 9455425Copy full SHA for 9455425
1 file changed
classes/suggested-tasks/local-tasks/providers/one-time/class-disable-comments.php
@@ -33,7 +33,7 @@ class Disable_Comments extends One_Time {
33
* @return bool
34
*/
35
public function should_add_task() {
36
- return 10 > \wp_count_comments()->approved && 'closed' !== \get_default_comment_status() && \comments_open();
+ return 10 > \wp_count_comments()->approved && 'open' === \get_default_comment_status();
37
}
38
39
/**
@@ -42,7 +42,7 @@ public function should_add_task() {
42
43
44
public function is_task_completed() {
45
- return 'closed' === \get_default_comment_status();
+ return 'open' !== \get_default_comment_status();
46
47
48
0 commit comments