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:
matt 2007-04-10 07:38:36 +00:00
parent a24ee4902a
commit 43e5b7c897
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' => '«',