Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#15479 closed defect (bug) (fixed)

User pagination is broken

Reported by: ocean90 Owned by: scribu
Priority: high Milestone: 3.1
Component: Administration Version:
Severity: major Keywords: has-patch
Cc: Focuses:

Description

On network and site the pagination seems to be broken.

Example: 5 items, 1 per page. first page = 1 item, second page = 2 items, third page = 3 items, fourth page = 1 item

Attachments (2)

15479.diff​ (539 bytes ) - added by duck_ 16 years ago.
total.15479.diff​ (675 bytes ) - added by scribu 16 years ago.

Download all attachments as: .zip

Change History (9)

#1 @scribu
16 years ago

  • Priority normal → high

#2 @scribu
16 years ago

  • Summary User AJAX pagination is broken → User pagination is broken

It seems regular pagination is broken too.

#3 @duck_
16 years ago

  • Keywords has-patch added; needs-patch removed

Looks like limit row count should just be number.

#4 @scribu
16 years ago

  • Resolution → fixed
  • Status new → closed

(In [16473]) Fix user pagination. Props duck_. Fixes #15479

#5 @scribu
16 years ago

  • Keywords needs-patch added; has-patch removed
  • Resolution fixed
  • Status closed → reopened

The page count drops to 0 for anything except the first one.

#6 @scribu
16 years ago

  • Keywords has-patch added; needs-patch removed
  • Severity normal → major

It seems I mistakenly included the LIMIT clause in the query that counts the total users.

#7 @automattor
16 years ago

  • Resolution → fixed
  • Status reopened → closed

(In [17034]) Don't limit total_users. props scribu, fixes #15479.

Note: See TracTickets for help on using tickets.