Remove duplicate IDs before passing comment post IDs to get_pending_comments_num()
git-svn-id: http://svn.automattic.com/wordpress/trunk@18041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a44378eafd
commit
eb825b2b40
|
@ -110,6 +110,8 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||||
$_comment_post_ids[] = $_c->comment_post_ID;
|
$_comment_post_ids[] = $_c->comment_post_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_comment_post_ids = array_unique( $_comment_post_ids );
|
||||||
|
|
||||||
$this->pending_count = get_pending_comments_num( $_comment_post_ids );
|
$this->pending_count = get_pending_comments_num( $_comment_post_ids );
|
||||||
|
|
||||||
$this->set_pagination_args( array(
|
$this->set_pagination_args( array(
|
||||||
|
|
Loading…
Reference in New Issue