This fixes the broken paginate_links on the comments and users page, however the way this function works is rather awkward and should be redone. There is far too much complexity for what it's trying to do.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -87,8 +87,8 @@ $comments = array_slice($_comments, 0, 20);
|
||||
$extra_comments = array_slice($_comments, 20);
|
||||
|
||||
$page_links = paginate_links( array(
|
||||
'base' => clean_url( add_query_arg( 'apage', '%#%' ) ),
|
||||
'format' => '',
|
||||
'base' => 'edit-comments.php?%_%',
|
||||
'format' => 'apage=%#%',
|
||||
'total' => ceil($total / 20),
|
||||
'current' => $page
|
||||
));
|
||||
|
||||
@@ -104,8 +104,8 @@ foreach ( $wp_upload_tabs as $t => $tab_array ) { // We've already done the curr
|
||||
$per = 10;
|
||||
}
|
||||
$page_links = paginate_links( array(
|
||||
'base' => add_query_arg( 'paged', '%#%' ),
|
||||
'format' => '',
|
||||
'base' => 'users.php?%_%',
|
||||
'format' => 'paged=%#%',
|
||||
'total' => ceil($total / $per),
|
||||
'current' => $paged ? $paged : 1,
|
||||
'prev_text' => '«',
|
||||
|
||||
Reference in New Issue
Block a user