WordPress.org

Make WordPress Core

Opened 13 months ago

Closed 8 months ago

#45223 closed enhancement (fixed)

Use login__in in WP_MS_Users_List_Table

Reported by: spacedmonkey Owned by: SergeyBiryukov
Milestone: 5.2 Priority: normal
Severity: normal Version: 3.1
Component: Users Keywords: has-patch dev-feedback 2nd-opinion
Focuses: multisite Cc:
PR Number:

Description

In WP_MS_Users_List_Table, it runs a raw sql query to get list of super admin user ids. This is no longer required after 4.7, where login__in param was added.

Attachments (1)

45223.diff (908 bytes) - added by spacedmonkey 13 months ago.

Download all attachments as: .zip

Change History (4)

@spacedmonkey
13 months ago

#1 @SergeyBiryukov
13 months ago

  • Milestone changed from Awaiting Review to 5.1
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#2 @pento
10 months ago

  • Milestone changed from 5.1 to 5.2

#3 @SergeyBiryukov
8 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 44813:

Users: Use login__in parameter for WP_User_Query in WP_MS_Users_List_Table::prepare_items(), instead of a manual query.

Props spacedmonkey.
Fixes #45223.

Note: See TracTickets for help on using tickets.