Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r11659 r11380  
    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 + 8, $post_id, $comment_type ); // Grab a few extra
     196list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 5, $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 esc_attr($page); ?>" />
    362     <input type="hidden" name="per_page" value="<?php echo esc_attr($comments_per_page); ?>" />
     361    <input type="hidden" name="page" value="<?php echo isset($_REQUEST['page']) ? absint( $_REQUEST['page'] ) : 1; ?>" />
    363362    <input type="hidden" name="p" value="<?php echo esc_attr( $post_id ); ?>" />
    364363    <input type="hidden" name="comment_type" value="<?php echo esc_attr( $comment_type ); ?>" />
Note: See TracChangeset for help on using the changeset viewer.