WordPress.org

Make WordPress Core

Changeset 4848


Ignore:
Timestamp:
01/31/07 05:57:54 (9 years ago)
Author:
markjaquith
Message:

run get_categories filter on cached get_categories hits. fixes #3728

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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'; 
Note: See TracChangeset for help on using the changeset viewer.