Remove duplicate IDs before passing comment post IDs to get_pending_comments_num()

git-svn-id: https://develop.svn.wordpress.org/trunk@18041 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-05-25 17:36:26 +00:00
parent 2633e960d0
commit 657155ed7c

View File

@ -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(