Add pre_transient filter

git-svn-id: https://develop.svn.wordpress.org/trunk@10862 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-03 16:19:25 +00:00
parent 76b036f33b
commit 9a238639a4
1 changed files with 4 additions and 0 deletions

View File

@ -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 {