Keep editing mode when paging through comments. fixes #4300
git-svn-id: http://svn.automattic.com/wordpress/trunk@5497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4e6e08e11d
commit
69c2d56a31
|
@ -79,6 +79,7 @@ if ( isset( $_GET['apage'] ) )
|
||||||
$page = (int) $_GET['apage'];
|
$page = (int) $_GET['apage'];
|
||||||
else
|
else
|
||||||
$page = 1;
|
$page = 1;
|
||||||
|
|
||||||
$start = $offset = ( $page - 1 ) * 20;
|
$start = $offset = ( $page - 1 ) * 20;
|
||||||
|
|
||||||
list($_comments, $total) = _wp_get_comment_list( isset($_GET['s']) ? $_GET['s'] : false, $start, 25 ); // Grab a few extra
|
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);
|
$extra_comments = array_slice($_comments, 20);
|
||||||
|
|
||||||
$page_links = paginate_links( array(
|
$page_links = paginate_links( array(
|
||||||
'base' => 'edit-comments.php?%_%',
|
'base' => add_query_arg( 'apage', '%_%' ),
|
||||||
'format' => 'apage=%#%',
|
'format' => '',
|
||||||
'total' => ceil($total / 20),
|
'total' => ceil($total / 20),
|
||||||
'current' => $page
|
'current' => $page
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in New Issue