[wp-trac] [WordPress Trac] #16357: Bugs with pagination input

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 24 04:45:56 UTC 2011


#16357: Bugs with pagination input
--------------------------+-------------------------------------
 Reporter:  garyc40       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1
 Severity:  normal        |   Keywords:  has-patch needs-testing
--------------------------+-------------------------------------
 (moved from #16356)

 There are a few bugs with pagination that I found

 - {{{users.php}}} don't redirect when {{{$pagenum > $total_pages}}}

 - Go to edit-tags.php, navigate to the 3rd page, for example. Then enter
 {{{2}}} in the pagination input box and press enter. You'll be in page
 number 3.

 - Go to network/users.php , enter a page number in the pagination input
 box and press enter. It simply redirects to page 1.

 - WP_Users_List_Table and WP_MS_Users_List_Table doesn't set the proper
 pagination args when {{{$pagenum > $total_pages}}} . This is because total
 user count is not executed when no results are returned from the query.
 See the change I made in {{{wp-includes/user.php}}}.

 Should all the redirection when {{{$pagenum > $total_pages}}} be
 centralized in WP_List_Table? We can put that logic inside
 {{{WP_List_Table->set_pagination_args()}}}.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16357>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list