Skip to content

Commit 9455425

Browse files
committed
fix comment-disabling check
1 parent 36de436 commit 9455425

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

classes/suggested-tasks/local-tasks/providers/one-time/class-disable-comments.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Disable_Comments extends One_Time {
3333
* @return bool
3434
*/
3535
public function should_add_task() {
36-
return 10 > \wp_count_comments()->approved && 'closed' !== \get_default_comment_status() && \comments_open();
36+
return 10 > \wp_count_comments()->approved && 'open' === \get_default_comment_status();
3737
}
3838

3939
/**
@@ -42,7 +42,7 @@ public function should_add_task() {
4242
* @return bool
4343
*/
4444
public function is_task_completed() {
45-
return 'closed' === \get_default_comment_status();
45+
return 'open' !== \get_default_comment_status();
4646
}
4747

4848
/**

0 commit comments

Comments
 (0)