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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35645 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges 2015-11-16 19:03:13 +00:00
parent 10c377b9b9
commit 56625d9e13

View File

@ -186,9 +186,10 @@ class WP_User_Query {
* is not needed, setting this to false can improve performance.
* Default true.
* @type string|array $fields Which fields to return. Single or all fields (string), or array
* of fields. Accepts 'ID', 'display_name', 'login', 'nicename',
* 'email', 'url', 'registered'. Use 'all' for all fields and
* 'all_with_meta' to include meta fields. Default 'all'.
* of fields. Accepts 'ID', 'display_name', 'user_login',
* 'user_nicename', 'user_email', 'user_url', 'user_registered'.
* Use 'all' for all fields and 'all_with_meta' to include
* meta fields. Default 'all'.
* @type string $who Type of users to query. Accepts 'authors'.
* Default empty (all users).
* @type bool|array $has_published_posts Pass an array of post types to filter results to users who have