Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r17384 r18041  
    2222    var $pending_count = array();
    2323
    24     function WP_Comments_List_Table() {
     24    function __construct() {
    2525        global $post_id;
    2626
     
    3030            add_filter( 'comment_author', 'floated_admin_avatar' );
    3131
    32         parent::WP_List_Table( array(
     32        parent::__construct( array(
    3333            'plural' => 'comments',
    3434            'singular' => 'comment',
     
    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.