Changeset 4848

Show
Ignore:
Timestamp:
01/31/07 05:57:54 (1 year ago)
Author:
markjaquith
Message:

run get_categories filter on cached get_categories hits. fixes #3728

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/category.php

    r4722 r4848  
    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';