Pass $taxonomies to the get_terms_orderby filter.

props johnbillion.
fixes #18754.

Built from https://develop.svn.wordpress.org/trunk@25142


git-svn-id: http://core.svn.wordpress.org/trunk@25122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-08-27 21:06:09 +00:00
parent 94bacd5887
commit 732f176943

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