Add pre_transient filter

git-svn-id: http://svn.automattic.com/wordpress/trunk@10862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-03 16:19:25 +00:00
parent c31fdfbca7
commit ef9237e7b0
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 {