From 713c6cfb886492819dcc769a9f2b8a9d305b71fe Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 27 Aug 2013 21:05:03 +0000 Subject: [PATCH] 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 --- src/wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 09ca52f5e1..93df284fc6 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -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";