WordPress.org

Make WordPress Core

Changeset 46156


Ignore:
Timestamp:
09/17/2019 03:42:51 PM (2 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct accepted values for search_columns parameter in WP_User_Query.

Props meloniq.
Fixes #48057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-user-query.php

    r46144 r46156  
    160160     *                                             When `$search_columns` is left empty, it tries to determine which
    161161     *                                             column to search in based on search string. Default empty.
    162      *     @type array        $search_columns      Array of column names to be searched. Accepts 'ID', 'login',
    163      *                                             'nicename', 'email', 'url'. Default empty array.
     162     *     @type array        $search_columns      Array of column names to be searched. Accepts 'ID', 'user_login',
     163     *                                             'user_email', 'user_url', 'user_nicename', 'display_name'.
     164     *                                             Default empty array.
    164165     *     @type string|array $orderby             Field(s) to sort the retrieved users by. May be a single value,
    165166     *                                             an array of values, or a multi-dimensional array with fields as
     
    538539             * Filters the columns to search in a WP_User_Query search.
    539540             *
    540              * The default columns depend on the search term, and include 'user_email',
    541              * 'user_login', 'ID', 'user_url', 'display_name', and 'user_nicename'.
     541             * The default columns depend on the search term, and include 'ID', 'user_login',
     542             * 'user_email', 'user_url', 'user_nicename', and 'display_name'.
    542543             *
    543544             * @since 3.6.0
Note: See TracChangeset for help on using the changeset viewer.