[wp-trac] [WordPress Trac] #27026: wp_user_query order by meta_value not working when using role insider $args

WordPress Trac noreply at wordpress.org
Wed Oct 29 21:40:07 UTC 2014


#27026: wp_user_query order by meta_value not working when using role insider $args
--------------------------+------------------------------
 Reporter:  ecommy        |       Owner:  kovshenin
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  3.8.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     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/27026#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list