diff --git wp-includes/taxonomy.php wp-includes/taxonomy.php
index 09ca52f..9bd1b3b 100644
|
|
function get_terms($taxonomies, $args = '') { |
1288 | 1288 | else |
1289 | 1289 | $orderby = 't.name'; |
1290 | 1290 | |
1291 | | $orderby = apply_filters( 'get_terms_orderby', $orderby, $args ); |
| 1291 | $orderby = apply_filters( 'get_terms_orderby', $orderby, $args, $taxonomies ); |
1292 | 1292 | |
1293 | 1293 | if ( !empty($orderby) ) |
1294 | 1294 | $orderby = "ORDER BY $orderby"; |
… |
… |
function get_terms($taxonomies, $args = '') { |
1344 | 1344 | |
1345 | 1345 | if ( !empty($exclusions) ) |
1346 | 1346 | $exclusions .= ')'; |
1347 | | $exclusions = apply_filters('list_terms_exclusions', $exclusions, $args ); |
| 1347 | $exclusions = apply_filters('list_terms_exclusions', $exclusions, $args, $taxonomies ); |
1348 | 1348 | $where .= $exclusions; |
1349 | 1349 | |
1350 | 1350 | if ( !empty($slug) ) { |
… |
… |
function get_terms($taxonomies, $args = '') { |
1400 | 1400 | |
1401 | 1401 | $_fields = $fields; |
1402 | 1402 | |
1403 | | $fields = implode(', ', apply_filters( 'get_terms_fields', $selects, $args )); |
| 1403 | $fields = implode(', ', apply_filters( 'get_terms_fields', $selects, $args, $taxonomies )); |
1404 | 1404 | |
1405 | 1405 | $join = "INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id"; |
1406 | 1406 | |