Make WordPress Core

Changeset 4849


Ignore:
Timestamp:
01/31/2007 05:58:40 AM (18 years ago)
Author:
markjaquith
Message:

run get_categories filter on cached get_categories hits. fixes #3728

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/wp-includes/category.php

    r4722 r4849  
    3434    if ( $cache = wp_cache_get( 'get_categories', 'category' ) )
    3535        if ( isset( $cache[ $key ] ) )
    36             return $cache[ $key ];
     36            return apply_filters('get_categories', $cache[$key], $r);
    3737
    3838    $where = 'cat_ID > 0';
Note: See TracChangeset for help on using the changeset viewer.