Make WordPress Core


Ignore:
Timestamp:
11/28/2014 12:01:21 PM (10 years ago)
Author:
DrewAPicture
Message:

4.1 Docs Audit: Improve inline documentation for various WP_Meta_Query methods introduced or modified in 4.1.

See #30469.

File:
1 edited

Legend:

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

    r30163 r30617  
    979979
    980980    /**
    981      * Ensure the `meta_query` argument passed to the class constructor is well-formed.
     981     * Ensure the 'meta_query' argument passed to the class constructor is well-formed.
    982982     *
    983983     * Eliminates empty items and ensures that a 'relation' is set.
     
    12321232     * @access protected
    12331233     *
    1234      * @param array $query Query to parse.
     1234     * @param array $query Query to parse, passed by reference.
    12351235     * @param int   $depth Optional. Number of tree levels deep we currently are.
    1236      *               Used to calculate indentation.
     1236     *                     Used to calculate indentation. Default 0.
    12371237     * @return array {
    12381238     *     Array containing JOIN and WHERE SQL clauses to append to a single query array.
     
    13161316     * @access public
    13171317     *
    1318      * @param array $clause       Query clause.
     1318     * @param array $clause       Query clause, passed by reference.
    13191319     * @param array $parent_query Parent query array.
    13201320     * @return array {
     
    14471447
    14481448    /**
    1449      * Identify an existing table alias that is compatible with the current query clause.
     1449     * Identify an existing table alias that is compatible with the current
     1450     * query clause.
    14501451     *
    14511452     * We avoid unnecessary table joins by allowing each clause to look for
    14521453     * an existing table alias that is compatible with the query that it
    1453      * needs to perform. An existing alias is compatible if (a) it is a
    1454      * sibling of $clause (ie, it's under the scope of the same relation),
    1455      * and (b) the combination of operator and relation between the clauses
    1456      * allows for a shared table join. In the case of WP_Meta_Query, this
    1457      * only applies to IN clauses that are connected by the relation OR.
     1454     * needs to perform.
     1455     *
     1456     * An existing alias is compatible if (a) it is a sibling of `$clause`
     1457     * (ie, it's under the scope of the same relation), and (b) the combination
     1458     * of operator and relation between the clauses allows for a shared table join.
     1459     * In the case of {@see WP_Meta_Query}, this only applies to 'IN' clauses that
     1460     * are connected by the relation 'OR'.
    14581461     *
    14591462     * @since 4.1.0
Note: See TracChangeset for help on using the changeset viewer.