[wp-trac] [WordPress Trac] #53177: WP_User_Query does not accept fields as string except ID
WordPress Trac
noreply at wordpress.org
Tue Apr 26 00:27:40 UTC 2022
#53177: WP_User_Query does not accept fields as string except ID
-------------------------------------------+-----------------------
Reporter: rilwis | Owner: audrasjb
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.0
Component: Users | Version: 4.4
Severity: normal | Resolution:
Keywords: has-testing-info has-dev-note | Focuses: docs
-------------------------------------------+-----------------------
Changes (by peterwilsoncc):
* keywords:
has-patch has-unit-tests has-testing-info commit assigned-for-commit
has-dev-note
=> has-testing-info has-dev-note
* status: closed => reopened
* resolution: fixed =>
Comment:
Reopening this for a few reasons:
* `data_returning_fields()` needs a test for a lower case ID
* An array of fields doesn't validate against the allowed fields
* The query generated when passing an invalid value has changed from `ID`
to `*`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53177#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list