From 69c2d56a31b2510f70ddb9f574a38607e90595c8 Mon Sep 17 00:00:00 2001 From: rob1n Date: Mon, 21 May 2007 12:52:44 +0000 Subject: [PATCH] Keep editing mode when paging through comments. fixes #4300 git-svn-id: http://svn.automattic.com/wordpress/trunk@5497 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-comments.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index dc3cd327d..bbd5e22e6 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -79,6 +79,7 @@ if ( isset( $_GET['apage'] ) ) $page = (int) $_GET['apage']; else $page = 1; + $start = $offset = ( $page - 1 ) * 20; list($_comments, $total) = _wp_get_comment_list( isset($_GET['s']) ? $_GET['s'] : false, $start, 25 ); // Grab a few extra @@ -87,8 +88,8 @@ $comments = array_slice($_comments, 0, 20); $extra_comments = array_slice($_comments, 20); $page_links = paginate_links( array( - 'base' => 'edit-comments.php?%_%', - 'format' => 'apage=%#%', + 'base' => add_query_arg( 'apage', '%_%' ), + 'format' => '', 'total' => ceil($total / 20), 'current' => $page ));