]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/edit-comments.php
Wizard 2.8.2-scripts
[autoinstalls/wordpress.git] / wp-admin / edit-comments.php
index da5ce02048a282e223ea74ddc73f7cc61b0bbc2a..7df02103324fa09daa1845c0bb3466f72f76564c 100644 (file)
@@ -193,7 +193,7 @@ else
 
 $start = $offset = ( $page - 1 ) * $comments_per_page;
 
-list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 5, $post_id, $comment_type ); // Grab a few extra
+list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 8, $post_id, $comment_type ); // Grab a few extra
 
 $_comment_post_ids = array();
 foreach ( $_comments as $_c ) {
@@ -358,7 +358,8 @@ if ( $page_links )
        <input type="hidden" name="s" value="<?php echo esc_attr($search); ?>" />
        <input type="hidden" name="mode" value="<?php echo esc_attr($mode); ?>" />
        <input type="hidden" name="comment_status" value="<?php echo esc_attr($comment_status); ?>" />
-       <input type="hidden" name="page" value="<?php echo isset($_REQUEST['page']) ? absint( $_REQUEST['page'] ) : 1; ?>" />
+       <input type="hidden" name="page" value="<?php echo esc_attr($page); ?>" />
+       <input type="hidden" name="per_page" value="<?php echo esc_attr($comments_per_page); ?>" />
        <input type="hidden" name="p" value="<?php echo esc_attr( $post_id ); ?>" />
        <input type="hidden" name="comment_type" value="<?php echo esc_attr( $comment_type ); ?>" />
        <?php wp_nonce_field( 'add-comment', '_ajax_nonce', false ); ?>