Make WordPress Core


Ignore:
Timestamp:
12/28/2014 01:43:47 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Correct $taxonomies parameter description in get_terms() filters.

props dlh.
fixes #30851.

File:
1 edited

Legend:

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

    r30993 r30994  
    16491649         * @since 3.1.0
    16501650         *
    1651          * @param array        $args       An array of arguments.
    1652          * @param string|array $taxonomies A taxonomy or array of taxonomies.
     1651         * @param array $args       An array of arguments.
     1652         * @param array $taxonomies An array of taxonomies.
    16531653         */
    16541654        $args = apply_filters( 'get_terms_args', $args, $taxonomies );
     
    16871687                 * @since 2.3.0
    16881688                 *
    1689                  * @param array        $cache      Cached array of terms for the given taxonomy.
    1690                  * @param string|array $taxonomies A taxonomy or array of taxonomies.
    1691                  * @param array        $args       An array of arguments to get terms.
     1689                 * @param array $cache      Cached array of terms for the given taxonomy.
     1690                 * @param array $taxonomies An array of taxonomies.
     1691                 * @param array $args       An array of arguments to get terms.
    16921692                 */
    16931693                $cache = apply_filters( 'get_terms', $cache, $taxonomies, $args );
     
    17191719         * @since 2.8.0
    17201720         *
    1721          * @param string       $orderby    ORDERBY clause of the terms query.
    1722          * @param array        $args       An array of terms query arguments.
    1723          * @param string|array $taxonomies A taxonomy or array of taxonomies.
     1721         * @param string $orderby    ORDERBY clause of the terms query.
     1722         * @param array  $args       An array of terms query arguments.
     1723         * @param array  $taxonomies An array of taxonomies.
    17241724         */
    17251725        $orderby = apply_filters( 'get_terms_orderby', $orderby, $args, $taxonomies );
     
    17861786         * @since 2.3.0
    17871787         *
    1788          * @param string       $exclusions NOT IN clause of the terms query.
    1789          * @param array        $args       An array of terms query arguments.
    1790          * @param string|array $taxonomies A taxonomy or array of taxonomies.
     1788         * @param string $exclusions NOT IN clause of the terms query.
     1789         * @param array  $args       An array of terms query arguments.
     1790         * @param array  $taxonomies An array of taxonomies.
    17911791         */
    17921792        $exclusions = apply_filters( 'list_terms_exclusions', $exclusions, $args, $taxonomies );
     
    18781878         * @since 2.8.0
    18791879         *
    1880          * @param array        $selects    An array of fields to select for the terms query.
    1881          * @param array        $args       An array of term query arguments.
    1882          * @param string|array $taxonomies A taxonomy or array of taxonomies.
     1880         * @param array $selects    An array of fields to select for the terms query.
     1881         * @param array $args       An array of term query arguments.
     1882         * @param array $taxonomies An array of taxonomies.
    18831883         */
    18841884        $fields = implode( ', ', apply_filters( 'get_terms_fields', $selects, $args, $taxonomies ) );
     
    18931893         * @since 3.1.0
    18941894         *
    1895          * @param array        $pieces     Terms query SQL clauses.
    1896          * @param string|array $taxonomies A taxonomy or array of taxonomies.
    1897          * @param array        $args       An array of terms query arguments.
     1895         * @param array $pieces     Terms query SQL clauses.
     1896         * @param array $taxonomies An array of taxonomies.
     1897         * @param array $args       An array of terms query arguments.
    18981898         */
    18991899        $clauses = apply_filters( 'terms_clauses', compact( $pieces ), $taxonomies, $args );
Note: See TracChangeset for help on using the changeset viewer.