WordPress.org

Make WordPress Core

Changeset 37688


Ignore:
Timestamp:
06/12/2016 12:01:54 AM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Improve first-order clause documentation for the $meta_query parameter in the constructor for WP_Meta_Query.

First-order meta query clauses are defined as clauses that have either a 'key' or 'value' array key. When using named first-order clauses in meta queries to order results in the parent query, WP_Meta_Query can additionally accept first-order clauses at the sub-clause level, which was not previous documented.

Fixes #32659.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-meta-query.php

    r37594 r37688  
    115115     *
    116116     * @param array $meta_query {
    117      *     Array of meta query clauses. When first-order clauses use strings as their array keys, they may be
    118      *     referenced in the 'orderby' parameter of the parent query.
     117     *     Array of meta query clauses. When first-order clauses or sub-clauses use strings as
     118     *     their array keys, they may be referenced in the 'orderby' parameter of the parent query.
    119119     *
    120120     *     @type string $relation Optional. The MySQL keyword used to join
Note: See TracChangeset for help on using the changeset viewer.