var $pending_count = array();
- function WP_Comments_List_Table() {
+ function __construct() {
global $post_id;
$post_id = isset( $_REQUEST['p'] ) ? absint( $_REQUEST['p'] ) : 0;
if ( get_option('show_avatars') )
add_filter( 'comment_author', 'floated_admin_avatar' );
- parent::WP_List_Table( array(
+ parent::__construct( array(
'plural' => 'comments',
'singular' => 'comment',
'ajax' => true,
$_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(