From fd18faabf109f43ec728356982098d3dfa9fa151 Mon Sep 17 00:00:00 2001 From: Mark Jaquith 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: https://develop.svn.wordpress.org/trunk@4848 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 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 = '';