Make WordPress Core

Ticket #18754: 18754.diff

File 18754.diff, 1.1 KB (added by johnbillion, 11 years ago)
  • wp-includes/taxonomy.php

    diff --git wp-includes/taxonomy.php wp-includes/taxonomy.php
    index 09ca52f..9bd1b3b 100644
    function get_terms($taxonomies, $args = '') { 
    12881288        else
    12891289                $orderby = 't.name';
    12901290
    1291         $orderby = apply_filters( 'get_terms_orderby', $orderby, $args );
     1291        $orderby = apply_filters( 'get_terms_orderby', $orderby, $args, $taxonomies );
    12921292
    12931293        if ( !empty($orderby) )
    12941294                $orderby = "ORDER BY $orderby";
    function get_terms($taxonomies, $args = '') { 
    13441344
    13451345        if ( !empty($exclusions) )
    13461346                $exclusions .= ')';
    1347         $exclusions = apply_filters('list_terms_exclusions', $exclusions, $args );
     1347        $exclusions = apply_filters('list_terms_exclusions', $exclusions, $args, $taxonomies );
    13481348        $where .= $exclusions;
    13491349
    13501350        if ( !empty($slug) ) {
    function get_terms($taxonomies, $args = '') { 
    14001400
    14011401        $_fields = $fields;
    14021402
    1403         $fields = implode(', ', apply_filters( 'get_terms_fields', $selects, $args ));
     1403        $fields = implode(', ', apply_filters( 'get_terms_fields', $selects, $args, $taxonomies ));
    14041404
    14051405        $join = "INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id";
    14061406