From a515dfc9f013c83d9ba8f3ae2aafcba171ea7d86 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 3 Oct 2008 22:09:35 +0000 Subject: [PATCH] Add filter to get_categories(), props Malaiac, fixes #7427 git-svn-id: https://develop.svn.wordpress.org/trunk@9080 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 44fbf0017f..1d0bd24253 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 );