From 7130a2b1c8933cced8c276fd668f2259134bb6a3 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 31 Jan 2007 05:57:54 +0000 Subject: [PATCH] run get_categories filter on cached get_categories hits. fixes #3728 git-svn-id: http://svn.automattic.com/wordpress/trunk@4848 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 7fdc334704..2ba3d30be9 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -33,7 +33,7 @@ function &get_categories($args = '') { $key = md5( serialize( $r ) ); if ( $cache = wp_cache_get( 'get_categories', 'category' ) ) if ( isset( $cache[ $key ] ) ) - return $cache[ $key ]; + return apply_filters('get_categories', $cache[$key], $r); $where = 'cat_ID > 0'; $inclusions = '';