Changeset 10102 for trunk/wp-admin/edit-comments.php
- Timestamp:
- 12/07/2008 07:10:47 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r10082 r10102 191 191 list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 5, $post_id, $comment_type ); // Grab a few extra 192 192 193 $_comment_post_ids = array(); 194 foreach ( $_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); 198 foreach ( (array) $_comment_post_ids as $_cpid ) 199 $_comment_pending_count[$_cpid] = isset( $_comment_pending_count_temp[$_cpid] ) ? $_comment_pending_count_temp[$_cpid] : 0; 200 if ( empty($_comment_pending_count) ) 201 $_comment_pending_count = array(); 202 193 203 $comments = array_slice($_comments, 0, $comments_per_page); 194 204 $extra_comments = array_slice($_comments, $comments_per_page);
Note: See TracChangeset
for help on using the changeset viewer.