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:
parent
690c3604cf
commit
7130a2b1c8
|
@ -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