[wp-trac] [WordPress Trac] #36724: who=>authors breaks meta arguments in user queries

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


#36724: who=>authors breaks meta arguments in user queries
--------------------------+---------------------------
 Reporter:  Rarst         |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.6
Component:  Users         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     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/36724#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list