From 2c99004610c1b3a47fe55a50989fe84836423a66 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Wed, 13 Jul 2016 11:21:18 +0800 Subject: [PATCH] Fix comments status in comment tab --- core/um-query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-query.php b/core/um-query.php index 7fe8b671..4f1d469f 100644 --- a/core/um-query.php +++ b/core/um-query.php @@ -91,7 +91,7 @@ class UM_Query { if ( $post_type == 'comment' ) { // comments unset( $args['post_type'] ); - unset( $args['post_status'] ); + $args['type__not_in'] = apply_filters( 'um_excluded_comment_types', array('') ); $comments = get_comments($args);