[wp-trac] [WordPress Trac] #32019: WP_User_Query: since 4.2 using array( 'who' => 'authors' ) has no effect on users query

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


#32019: WP_User_Query: since 4.2 using array( 'who' => 'authors' ) has no effect on
users query
------------------------------+---------------------------
 Reporter:  imath             |       Owner:  boonebgorges
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.2
Component:  Users             |     Version:  4.2
 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/32019#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list