[wp-trac] [WordPress Trac] #23849: Unexpected results when running WP_User_Query with role and meta_query

WordPress Trac noreply at wordpress.org
Tue Oct 28 22:43:38 UTC 2014


#23849: Unexpected results when running WP_User_Query with role and meta_query
--------------------------+------------------
 Reporter:  layotte       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.1
Component:  Users         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------
Changes (by kovshenin):

 * keywords:  dev-feedback has-patch => has-patch
 * milestone:  Awaiting Review => 4.1


Comment:

 This looks like a fairly easy fix now that we have nested meta queries.
 Instead of squeezing the caps query inside an existing meta query, we can
 create a new caps meta query and convert the original query into a nested
 one. See [attachment:23849.2.diff].

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


More information about the wp-trac mailing list