mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-11 16:14:32 +00:00
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:
@@ -110,6 +110,8 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
$_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->set_pagination_args( array(
|
||||
|
||||
Reference in New Issue
Block a user