[wp-trac] [WordPress Trac] #53177: WP_User_Query does not accept fields as string except ID

WordPress Trac noreply at wordpress.org
Thu May 5 01:10:46 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 has-   |     Focuses:  docs
  patch has-unit-tests needs-docs                |
-------------------------------------------------+-------------------------

Comment (by kraftbj):

 I believe the documentation has stated `ID` as the option in constructing
 or in the return, even if that's not what it did.

 I would lean towards 2 as the ID is the expected casing but maintain
 lowercase for BC for now. Deprecate the lowercase usage in some form.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53177#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list