WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/27/2009 10:39:09 PM (12 years ago)
Author:
azaozz
Message:

Fix pending comments count, paging and comments requests while moderating for 2.8

File:
1 edited

Legend:

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

    r11380 r11659  
    194194$start = $offset = ( $page - 1 ) * $comments_per_page;
    195195
    196 list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 5, $post_id, $comment_type ); // Grab a few extra
     196list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 8, $post_id, $comment_type ); // Grab a few extra
    197197
    198198$_comment_post_ids = array();
     
    359359    <input type="hidden" name="mode" value="<?php echo esc_attr($mode); ?>" />
    360360    <input type="hidden" name="comment_status" value="<?php echo esc_attr($comment_status); ?>" />
    361     <input type="hidden" name="page" value="<?php echo isset($_REQUEST['page']) ? absint( $_REQUEST['page'] ) : 1; ?>" />
     361    <input type="hidden" name="page" value="<?php echo esc_attr($page); ?>" />
     362    <input type="hidden" name="per_page" value="<?php echo esc_attr($comments_per_page); ?>" />
    362363    <input type="hidden" name="p" value="<?php echo esc_attr( $post_id ); ?>" />
    363364    <input type="hidden" name="comment_type" value="<?php echo esc_attr( $comment_type ); ?>" />
Note: See TracChangeset for help on using the changeset viewer.