Make WordPress Core


Ignore:
Timestamp:
12/07/2008 07:10:47 AM (16 years ago)
Author:
markjaquith
Message:

Much better In Response To column, with pretty comment bubble

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r10082 r10102  
    191191list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 5, $post_id, $comment_type ); // Grab a few extra
    192192
     193$_comment_post_ids = array();
     194foreach ( $_comments as $_c ) {
     195    $_comment_post_ids[] = $_c->comment_post_ID;
     196}
     197$_comment_pending_count_temp = (array) get_pending_comments_num($_comment_post_ids);
     198foreach ( (array) $_comment_post_ids as $_cpid )
     199    $_comment_pending_count[$_cpid] = isset( $_comment_pending_count_temp[$_cpid] ) ? $_comment_pending_count_temp[$_cpid] : 0;
     200if ( empty($_comment_pending_count) )
     201    $_comment_pending_count = array();
     202
    193203$comments = array_slice($_comments, 0, $comments_per_page);
    194204$extra_comments = array_slice($_comments, $comments_per_page);
Note: See TracChangeset for help on using the changeset viewer.