[wp-trac] [WordPress Trac] #23849: Unexpected results when running WP_User_Query with role and meta_query
WordPress Trac
noreply at wordpress.org
Wed Oct 29 21:40:06 UTC 2014
#23849: Unexpected results when running WP_User_Query with role and meta_query
------------------------------+------------------------
Reporter: layotte | Owner: kovshenin
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.1
Component: Users | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+------------------------
Changes (by kovshenin):
* owner: => kovshenin
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"30094"]:
{{{
#!CommitTicketReference repository="" revision="30094"
Use a nested meta query when querying by role in `WP_User_Query`.
If a user query includes a meta query together with a role argument,
nest the original meta query and append the role meta query with an
AND relationship.
fixes #23849, #27026.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23849#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list