From 56625d9e13ffedbccf11d1358771ae73ba634e49 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Mon, 16 Nov 2015 19:03:13 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-user-query.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/class-wp-user-query.php b/src/wp-includes/class-wp-user-query.php index b7d33027f3..a86c9c379b 100644 --- a/src/wp-includes/class-wp-user-query.php +++ b/src/wp-includes/class-wp-user-query.php @@ -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