Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 19 months ago

#22309 closed enhancement (duplicate)

user search should match display_name and user_email too by default

Reported by: magnus78 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Users Keywords: has-patch
Focuses: Cc:


When searching for users from the dashboard it's not always possible to find users even if you know their display name, which is really frustrating.

Please allow matching on display_name and user_email too.

Attachments (1)

trac22309_search_users_by_displayname.patch (590 bytes) - added by magnus78 3 years ago.
proposed fix

Download all attachments as: .zip

Change History (4)

comment:1 @SergeyBiryukov3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

comment:2 @magnus783 years ago

If we worry about speed of large networks i don't see why we wouldn't just add an index for these too?

ALTER TABLE users ADD KEY (user_email);
ALTER TABLE users ADD KEY (display_name);

Note: See TracTickets for help on using tickets.