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
This commit is contained in:
markjaquith 2007-01-31 05:57:54 +00:00
parent 690c3604cf
commit 7130a2b1c8
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ function &get_categories($args = '') {
$key = md5( serialize( $r ) ); $key = md5( serialize( $r ) );
if ( $cache = wp_cache_get( 'get_categories', 'category' ) ) if ( $cache = wp_cache_get( 'get_categories', 'category' ) )
if ( isset( $cache[ $key ] ) ) if ( isset( $cache[ $key ] ) )
return $cache[ $key ]; return apply_filters('get_categories', $cache[$key], $r);
$where = 'cat_ID > 0'; $where = 'cat_ID > 0';
$inclusions = ''; $inclusions = '';