mirror of
git://develop.git.wordpress.org/
synced 2025-01-16 20:38:35 +01:00
Oops. Personal debug code that slipped in.
git-svn-id: https://develop.svn.wordpress.org/branches/2.3@7587 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
574aec4158
commit
3a813d1649
@ -495,11 +495,7 @@ function &get_terms($taxonomies, $args = '') {
|
||||
}
|
||||
|
||||
$key = md5( serialize( $args ) . serialize( $taxonomies ) );
|
||||
if ( $_GET['taxonomy_test'] )
|
||||
$timer_start = time();
|
||||
if ( $cache = wp_cache_get( 'get_terms', 'terms' ) ) {
|
||||
if ( $_GET['taxonomy_test'] )
|
||||
mail('markjaquith@gmail.com', 'MM Debug ' . $timer_start - time() , print_r($cache, true));
|
||||
if ( isset( $cache[ $key ] ) )
|
||||
return apply_filters('get_terms', $cache[$key], $taxonomies, $args);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user