Make WordPress Core

Changeset 18041


Ignore:
Timestamp:
05/25/2011 05:36:26 PM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-comments-list-table.php

    r17771 r18041  
    110110                        $_comment_post_ids[] = $_c->comment_post_ID;
    111111                }
     112
     113                $_comment_post_ids = array_unique( $_comment_post_ids );
    112114
    113115                $this->pending_count = get_pending_comments_num( $_comment_post_ids );
Note: See TracChangeset for help on using the changeset viewer.