WordPress.org

Make WordPress Core

Changeset 16059


Ignore:
Timestamp:
10/28/10 19:09:18 (3 years ago)
Author:
scribu
Message:

Introduce get_terms_args filter. Fixes #15020

File:
1 edited

Legend:

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

    r16056 r16059  
    912912    } 
    913913 
    914     foreach ( (array) $taxonomies as $taxonomy ) { 
     914    foreach ( $taxonomies as $taxonomy ) { 
    915915        if ( ! taxonomy_exists($taxonomy) ) { 
    916916            $error = & new WP_Error('invalid_taxonomy', __('Invalid Taxonomy')); 
     
    940940        $args['pad_counts'] = false; 
    941941    } 
     942 
     943    $args = apply_filters( 'get_terms_args', $args, $taxonomies ); 
    942944 
    943945    extract($args, EXTR_SKIP); 
Note: See TracChangeset for help on using the changeset viewer.