[wp-trac] [WordPress Trac] #16357: Bugs with pagination input
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 25 22:00:30 UTC 2011
#16357: Bugs with pagination input
-------------------------------------+--------------------------
Reporter: garyc40 | Owner: markjaquith
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.1
Component: General | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------
Changes (by westi):
* status: closed => reopened
* resolution: fixed =>
Comment:
This breaks Network > Users when no search results - we end up with a
redirect loop as {{{$pagenum}}} is 1 and {{{$total_pages}} is 0
Something like this fixes it:
{{{
if ( $pagenum > $total_pages && 0 != $total_pages ) {
wp_redirect( add_query_arg( 'paged', $total_pages ) );
exit;
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16357#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list