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: https://develop.svn.wordpress.org/trunk@5226 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2007-04-10 07:38:36 +00:00
parent c4c416ce62
commit c144679edf
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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' => '«',