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:
parent
fb8f9d400a
commit
fd18faabf1
@ -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 = '';
|
||||
|
Loading…
Reference in New Issue
Block a user