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:
parent
c4c416ce62
commit
c144679edf
@ -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' => '«',
|
||||
|
Loading…
Reference in New Issue
Block a user