Make WordPress Core

Ticket #31174: 31174.diff

File 31174.diff, 1.1 KB (added by boonebgorges, 10 years ago)
  • src/wp-includes/taxonomy.php

    diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
    index 71c422d..106adb3 100644
    function get_term_to_edit( $id, $taxonomy ) { 
    15621562 * The 'get_terms_orderby' filter passes the ORDER BY clause for the query
    15631563 * along with the $args array.
    15641564 *
    1565  * The 'get_terms_fields' filter passes the fields for the SELECT query
    1566  * along with the $args array.
    1567  *
    15681565 * @since 2.3.0
    15691566 * @since 4.2.0 Introduced 'name' and 'childless' parameters.
    15701567 *
    function get_terms( $taxonomies, $args = '' ) { 
    19291926        /**
    19301927         * Filter the fields to select in the terms query.
    19311928         *
     1929         * Field lists modified using this filter will only modify the term fields returned by the function when the
     1930         * `$fields` parameter set to 'count' or 'all'. In all other cases, the term fields in the results array will
     1931         * be determined by the `$fields` parameter alone.
     1932         *
     1933         * Use of this filter can result in unpredictable behavior, and is not recommended.
     1934         *
    19321935         * @since 2.8.0
    19331936         *
    19341937         * @param array $selects    An array of fields to select for the terms query.