WordPress.org

Make WordPress Core

Changeset 10862


Ignore:
Timestamp:
04/03/2009 04:19:25 PM (9 years ago)
Author:
ryan
Message:

Add pre_transient filter

File:
1 edited

Legend:

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

    r10857 r10862  
    662662function get_transient($transient) {
    663663    global $_wp_using_ext_object_cache, $wpdb;
     664
     665    $pre = apply_filters( 'pre_transient_' . $transient, false );
     666    if ( false !== $pre )
     667        return $pre;
    664668
    665669    if ( $_wp_using_ext_object_cache ) {
Note: See TracChangeset for help on using the changeset viewer.