From 14dddc912be21438a1d57468c8bfc05b0f8f31f8 Mon Sep 17 00:00:00 2001 From: azaozz Date: Fri, 3 Oct 2008 22:09:35 +0000 Subject: [PATCH] Add filter to get_categories(), props Malaiac, fixes #7427 git-svn-id: http://svn.automattic.com/wordpress/trunk@9080 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/category.php b/wp-includes/category.php index 44fbf0017..1d0bd2425 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -40,7 +40,7 @@ function &get_categories( $args = '' ) { $defaults = array( 'type' => 'category' ); $args = wp_parse_args( $args, $defaults ); - $taxonomy = 'category'; + $taxonomy = apply_filters( 'get_categories_taxonomy', 'category', $args ); if ( 'link' == $args['type'] ) $taxonomy = 'link_category'; $categories = (array) get_terms( $taxonomy, $args );