Make WordPress Core

Changeset 35645


Ignore:
Timestamp:
11/16/2015 07:03:13 PM (9 years ago)
Author:
boonebgorges
Message:

Correct documentation for 'fields' param of WP_User_Query.

[29843] introduced this documentation, and incorrectly stated that short
column names (eg 'login' instead of 'user_login') could be used.

Props birgire.
Fixes #34701.

File:
1 edited

Legend:

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

    r35170 r35645  
    187187     *                                             Default true.
    188188     *     @type string|array $fields              Which fields to return. Single or all fields (string), or array
    189      *                                             of fields. Accepts 'ID', 'display_name', 'login', 'nicename',
    190      *                                             'email', 'url', 'registered'. Use 'all' for all fields and
    191      *                                             'all_with_meta' to include meta fields. Default 'all'.
     189     *                                             of fields. Accepts 'ID', 'display_name', 'user_login',
     190     *                                             'user_nicename', 'user_email', 'user_url', 'user_registered'.
     191     *                                             Use 'all' for all fields and 'all_with_meta' to include
     192     *                                             meta fields. Default 'all'.
    192193     *     @type string       $who                 Type of users to query. Accepts 'authors'.
    193194     *                                             Default empty (all users).
Note: See TracChangeset for help on using the changeset viewer.