Make WordPress Core


Ignore:
Timestamp:
01/12/2010 10:38:26 PM (16 years ago)
Author:
westi
Message:

Improve get_pending_comments_num() to be a little more predictable and revert the erroneous change in [12596]. See #11882.

File:
1 edited

Legend:

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

    r12616 r12715  
    245245    $_comment_post_ids[] = $_c->comment_post_ID;
    246246}
    247 $_comment_pending_count_temp = (array) get_pending_comments_num($_comment_post_ids);
    248 foreach ( (array) $_comment_post_ids as $_cpid )
    249     $_comment_pending_count[$_cpid] = isset( $_comment_pending_count_temp[$_cpid] ) ? $_comment_pending_count_temp[$_cpid] : 0;
    250 if ( empty($_comment_pending_count) )
    251     $_comment_pending_count = array();
     247
     248$_comment_pending_count = get_pending_comments_num($_comment_post_ids);
    252249
    253250$comments = array_slice($_comments, 0, $comments_per_page);
Note: See TracChangeset for help on using the changeset viewer.