[wp-trac] [WordPress Trac] #62041: WP_User_Query with compare_key always get 0 user
WordPress Trac
noreply at wordpress.org
Thu Sep 12 14:46:41 UTC 2024
#62041: WP_User_Query with compare_key always get 0 user
--------------------------+------------------------
Reporter: fantasyworld | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 5.1
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
--------------------------+------------------------
Changes (by hellofromTonya):
* status: reopened => closed
* version: 6.6.2 => 5.1
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
Hello @fantasyworld,
Welcome back to WordPress Core Trac.
Yes, you were previously, as this is already reported in #49284. That
specific ticket describes passing the `'meta_query'` args to
`get_users()`. In `get_users()`, it'll handle the instantiation of
`WP_User_Query( $args )`, which is what you describe.
Reclosing this ticket as duplicate to move the discussion and resolution
to one ticket, i.e. #49284. Inviting you to share your findings and join
the effort to resolve it in that ticket. Thanks.
Also updating the `Version`. No changes occurred in 6.6 or 6.6.2 to affect
this code. Last the change to `compare_key` in `WP_Meta_Query` was during
5.1 via #43346 / [46188]. Though I suspect its from an early version, I'll
mark `Version` as `5.1` to denote what is currently known.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62041#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list