[wp-trac] [WordPress Trac] #53177: WP_User_Query does not accept fields as string except ID
WordPress Trac
noreply at wordpress.org
Mon Apr 25 12:55:50 UTC 2022
#53177: WP_User_Query does not accept fields as string except ID
-------------------------------------------------+-------------------------
Reporter: rilwis | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0
Component: Users | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests has- | Focuses: docs
testing-info commit assigned-for-commit |
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"53255" 53255]:
{{{
#!CommitTicketReference repository="" revision="53255"
Users: Make sure `WP_User_Query` can be filtered using the `fields`
parameter.
This change ensures the `fields` parameter is taken into account when
running `WP_User_Query` by fixing the conditional statement used to
process the `fields` param.
Props rilwis, peterwilsoncc, NomNom99, hellofromTonya, audrasjb, rilwis,
Boniu91.
Fixes #53177.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53177#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list