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

WordPress Trac noreply at wordpress.org
Wed May 4 18:48:12 UTC 2016


#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:
------------------------------+------------------------

Comment (by boonebgorges):

 In [changeset:"37359"]:
 {{{
 #!CommitTicketReference repository="" revision="37359"
 Tests: Correct 'meta_query' syntax in test related to `WP_User_Query`
 'who' param.

 The test, introduced in [32207], used the incorrect syntax for
 'meta_query' -
 one fewer level of array-nesting than what `WP_Meta_Query` requires. This
 slip uncovered a bug introduced into `WP_User_Query` in [30094], whereby
 an incorrectly formatted 'meta_query' parameter would be properly parsed
 by
 `WP_User_Query` when passed alongside `who=authors`.

 We need to fix the inconsistent syntax in order to resolve #36724.

 See #36724, #32019, #23849, #27026.
 }}}

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


More information about the wp-trac mailing list