Make WordPress Core

Opened 6 days ago

Last modified 27 hours ago

#44368 new defect (bug)

Use total users in WP_User_Query in WP_MS_Sites_List_Table

Reported by: spacedmonkey Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.3
Component: Networks and Sites Keywords: has-patch
Focuses: multisite Cc:


Currently WP_MS_Sites_List_Table loads ALL user ids into an array and count them. This is extremely wasteful. The code can simply just the total users, that counts the rows in the database.

Attachments (1)

44368.diff (936 bytes) - added by spacedmonkey 6 days ago.

Download all attachments as: .zip

Change History (4)

6 days ago

#1 @desrosj
6 days ago

  • Version set to 4.3

#2 @desrosj
6 days ago

Tested this and works great for me. Good find!

This ticket was mentioned in Slack in #core-multisite by spacedmonkey. View the logs.

27 hours ago

Note: See TracTickets for help on using tickets.