Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#48057 closed enhancement (fixed)

Misleading info about 'search_columns' param in WP_User_Query class

Reported by: meloniq Owned by: SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: minor Version: 5.3
Component: Users Keywords: has-patch
Focuses: docs Cc:


Misleading info about search_columns param in WP_User_Query class.

Currently it says: 'ID', 'login', 'nicename', 'email', 'url'

where in fact it accepts: 'ID', 'user_login', 'user_email', 'user_url', 'user_nicename', 'display_name'

Attachments (1)

48057.patch (1.4 KB) - added by meloniq 2 years ago.

Download all attachments as: .zip

Change History (3)

2 years ago

#1 @SergeyBiryukov
2 years ago

  • Component changed from Text Changes to Users
  • Milestone changed from Awaiting Review to 5.3
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#2 @SergeyBiryukov
2 years ago

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

In 46156:

Docs: Correct accepted values for search_columns parameter in WP_User_Query.

Props meloniq.
Fixes #48057.

Note: See TracTickets for help on using tickets.