mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Pass $taxonomies to two more filters in get_terms().
props johnbillion. fixes #18754. Built from https://develop.svn.wordpress.org/trunk@25576 git-svn-id: http://core.svn.wordpress.org/trunk@25493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
731db6bcb5
commit
377cf11bfb
@ -1357,7 +1357,7 @@ function get_terms($taxonomies, $args = '') {
|
||||
if ( ! empty( $exclusions ) )
|
||||
$exclusions = ' AND t.term_id NOT IN (' . $exclusions . ')';
|
||||
|
||||
$exclusions = apply_filters( 'list_terms_exclusions', $exclusions, $args );
|
||||
$exclusions = apply_filters( 'list_terms_exclusions', $exclusions, $args, $taxonomies );
|
||||
|
||||
if ( ! empty( $exclusions ) )
|
||||
$where .= $exclusions;
|
||||
@ -1430,7 +1430,7 @@ function get_terms($taxonomies, $args = '') {
|
||||
|
||||
$_fields = $fields;
|
||||
|
||||
$fields = implode(', ', apply_filters( 'get_terms_fields', $selects, $args ));
|
||||
$fields = implode( ', ', apply_filters( 'get_terms_fields', $selects, $args, $taxonomies ) );
|
||||
|
||||
$join = "INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user