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
This commit is contained in:
Mark Jaquith 2007-01-31 05:57:54 +00:00
parent fb8f9d400a
commit fd18faabf1
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '';