[wp-trac] [WordPress Trac] #44368: Use total users in WP_User_Query in WP_MS_Sites_List_Table

WordPress Trac noreply at wordpress.org
Thu Jun 14 14:31:16 UTC 2018


#44368: Use total users in WP_User_Query in WP_MS_Sites_List_Table
--------------------------------+-----------------------------
 Reporter:  spacedmonkey        |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:  has-patch
  Focuses:  multisite           |
--------------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44368>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list