WordPress.org

Make WordPress Core

Changeset 37359


Ignore:
Timestamp:
05/04/2016 06:48:08 PM (2 years ago)
Author:
boonebgorges
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/query.php

    r35244 r37359  
    689689            'blog_id' => $b,
    690690            'meta_query' => array(
    691                 'key' => 'foo',
    692                 'value' => 'bar',
     691                array(
     692                    'key' => 'foo',
     693                    'value' => 'bar',
     694                )
    693695            ),
    694696        ) );
Note: See TracChangeset for help on using the changeset viewer.