Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#32982 closed defect (bug) (fixed)

MS Sites List Table: Pagination broken when entering a page number

Reported by: jeremyfelt's profile jeremyfelt Owned by: jeremyfelt's profile jeremyfelt
Milestone: 4.5 Priority: normal
Severity: normal Version: 3.1
Component: Networks and Sites Keywords: has-patch
Focuses: multisite Cc:


When wp-admin/network/sites.php shows a list table with more than one page, it is not possible to manually enter a page number go directly to a page. Pagination via prev/next arrows works fine.

This appears to have been introduced in [17322] when AJAX was removed from list tables. I don't think other tables have this trouble. It seems that the handling for the allblogs action is getting in the way of a normal paged request.

Attachments (1)

32982.diff (547 bytes) - added by jeremyfelt 8 years ago.

Download all attachments as: .zip

Change History (3)

8 years ago

#1 @jeremyfelt
8 years ago

  • Keywords has-patch added; needs-patch removed
  • Milestone changed from Future Release to 4.5

We can used the same "paged" handling as wp-admin/network/users.php when an allblogs request happens without a matching action or action2. 32982.diff does this.

#2 @jeremyfelt
8 years ago

  • Owner set to jeremyfelt
  • Resolution set to fixed
  • Status changed from new to closed

In 35917:

MS: Fix pagination in MS Sites List Table when entering a page number.

When a page number is manually entered in the sites list table and no bulk action is selected, add paged as a query argument to the redirect.

Fixes #32982.

Note: See TracTickets for help on using tickets.