Keep editing mode when paging through comments. fixes #4300

git-svn-id: https://develop.svn.wordpress.org/trunk@5497 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-05-21 12:52:44 +00:00
parent 543cda098a
commit 17d49e2c27
1 changed files with 3 additions and 2 deletions

View File

@ -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
));