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

WordPress Trac noreply at wordpress.org
Mon May 9 19:14:03 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 dev-feedback   |
  fixed-major                                    |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 I would prefer if the expected results in the tests matched the actual
 results a bit more closely, specifically in returning the uppercase `ID`
 before `id`. It looks like that is always the case here. See
 [attachment:"53177.2.diff"].

 Otherwise, [53362] looks good to backport.

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


More information about the wp-trac mailing list