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:
Andrew Nacin 2013-08-27 21:05:03 +00:00
parent 6ce20d366c
commit 713c6cfb88
1 changed files with 1 additions and 1 deletions

View File

@ -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";