id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses
22921,Allow get_users() to return array of values via 'fields' parameter,chipbennett,,"Currently, the `'fields'` parameter in the arguments array for `get_users()` only accepts either an array of user data fields, or the string `'all'`. Both of these options cause `get_users()` to return an array of object comprised of the specified user data. Passing any other string value to `'fields'` causes `get_users()` to return an array of user IDs.
Per the Codex:
> Array of objects, '''except when fields specifies a single field to be returned, then an array of values is returned'''. If fields is set to all_with_meta, it will return an array of WP_User objects.
This statement appears to be untrue, but would be incredibly useful if it were true.
Patch adds this functionality to `get_users()`.
Potentially related: #18581",enhancement,new,normal,Future Release,Users,3.5,normal,,has-patch needs-testing dev-feedback needs-refresh,,