Make WordPress Core

Changeset 25576


Ignore:
Timestamp:
09/23/2013 06:38:50 PM (11 years ago)
Author:
nacin
Message:

Pass $taxonomies to two more filters in get_terms().

props johnbillion.
fixes #18754.

File:
1 edited

Legend:

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

    r25572 r25576  
    13581358        $exclusions = ' AND t.term_id NOT IN (' . $exclusions . ')';
    13591359
    1360     $exclusions = apply_filters( 'list_terms_exclusions', $exclusions, $args );
     1360    $exclusions = apply_filters( 'list_terms_exclusions', $exclusions, $args, $taxonomies );
    13611361
    13621362    if ( ! empty( $exclusions ) )
     
    14311431    $_fields = $fields;
    14321432
    1433     $fields = implode(', ', apply_filters( 'get_terms_fields', $selects, $args ));
     1433    $fields = implode( ', ', apply_filters( 'get_terms_fields', $selects, $args, $taxonomies ) );
    14341434
    14351435    $join = "INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id";
Note: See TracChangeset for help on using the changeset viewer.