X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/7688c6ba71852cd89123b62b2d57683535e4702a..177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4:/wp-includes/category.php diff --git a/wp-includes/category.php b/wp-includes/category.php index 71e5be8b..193390dd 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -1,8 +1,6 @@ term_id; @@ -132,22 +127,11 @@ function sanitize_category_field($field, $value, $cat_id, $context) { // Tags function &get_tags($args = '') { - global $wpdb, $category_links; - - $key = md5( serialize( $args ) ); - if ( $cache = wp_cache_get( 'get_tags', 'category' ) ) - if ( isset( $cache[ $key ] ) ) - return apply_filters('get_tags', $cache[$key], $args); - - $tags = get_terms('post_tag', $args); if ( empty($tags) ) return array(); - $cache[ $key ] = $tags; - wp_cache_set( 'get_tags', $cache, 'category' ); - $tags = apply_filters('get_tags', $tags, $args); return $tags; }