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:
parent
2633e960d0
commit
657155ed7c
@ -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
Block a user