[wp-trac] [WordPress Trac] #34701: The inline documentation on the $fields query variable of the WP_User_Query
WordPress Trac
noreply at wordpress.org
Mon Nov 16 19:42:28 UTC 2015
#34701: The inline documentation on the $fields query variable of the WP_User_Query
--------------------------+---------------------------
Reporter: birgire | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Users | Version: trunk
Severity: normal | Resolution: fixed
Keywords: | Focuses: docs
--------------------------+---------------------------
Comment (by birgire):
Great, glad we fixed that one ;-)
It looks like we need to update the Codex as well:
https://codex.wordpress.org/Class_Reference/WP_User_Query#Return_Fields_Parameter
that seems to have influenced other websites, like this one recently:
http://code.tutsplus.com/tutorials/mastering-wp_user_query--cms-23204
where it uses {{{'fields' => 'email'}}} to return only the emails.
I therefore guess there have been other users scratching their heads
because of this parameter ;-)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34701#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list