From 9a238639a4b349eaf6276c7b9f1d40e76f694584 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 3 Apr 2009 16:19:25 +0000 Subject: [PATCH] Add pre_transient filter git-svn-id: https://develop.svn.wordpress.org/trunk@10862 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 1b70a9fbe2..03b4cc3aa6 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -662,6 +662,10 @@ function delete_transient($transient) { function get_transient($transient) { global $_wp_using_ext_object_cache, $wpdb; + $pre = apply_filters( 'pre_transient_' . $transient, false ); + if ( false !== $pre ) + return $pre; + if ( $_wp_using_ext_object_cache ) { $value = wp_cache_get($transient, 'transient'); } else {