WordPress.org

Make WordPress Core

Changeset 10533


Ignore:
Timestamp:
02/10/09 06:26:46 (7 years ago)
Author:
ryan
Message:

Add transient_* filter. see #9048

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r10514 r10533  
    663663 
    664664    if ( $_wp_using_ext_object_cache ) { 
    665         return wp_cache_get($transient, 'transient'); 
     665        $value = wp_cache_get($transient, 'transient'); 
    666666    } else { 
    667         $transient = '_transient_' . $wpdb->escape($transient); 
    668         return get_option($transient); 
    669     } 
     667        $transient_option = '_transient_' . $wpdb->escape($transient); 
     668        $value = get_option($transient_option); 
     669    } 
     670 
     671    return apply_filters('transient_' . $transient, $value); 
    670672} 
    671673 
Note: See TracChangeset for help on using the changeset viewer.