Pass $taxonomies to the get_terms_orderby filter.
props johnbillion. fixes #18754. git-svn-id: https://develop.svn.wordpress.org/trunk@25142 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6ce20d366c
commit
713c6cfb88
@ -1288,7 +1288,7 @@ function get_terms($taxonomies, $args = '') {
|
||||
else
|
||||
$orderby = 't.name';
|
||||
|
||||
$orderby = apply_filters( 'get_terms_orderby', $orderby, $args );
|
||||
$orderby = apply_filters( 'get_terms_orderby', $orderby, $args, $taxonomies );
|
||||
|
||||
if ( !empty($orderby) )
|
||||
$orderby = "ORDER BY $orderby";
|
||||
|
Loading…
Reference in New Issue
Block a user