From ef9237e7b08c303f66d7da0a155f9fc77f838a72 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 3 Apr 2009 16:19:25 +0000 Subject: [PATCH] Add pre_transient filter git-svn-id: http://svn.automattic.com/wordpress/trunk@10862 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 {