WordPress.org

Make WordPress Core

Opened 4 weeks ago

Closed 4 weeks 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: trunk
Component: Users Keywords: has-patch
Focuses: docs Cc:
PR Number:

Description

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 4 weeks ago.

Download all attachments as: .zip

Change History (3)

@meloniq
4 weeks ago

#1 @SergeyBiryukov
4 weeks 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
4 weeks 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.