diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index d8abfc00fa..b9b804235e 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1295,7 +1295,7 @@ function get_term($term, $taxonomy, $output = OBJECT, $filter = 'raw') { $term = $term->term_id; if ( !$term = (int) $term ) return null; - if ( ! $_term = wp_cache_get($term, $taxonomy) ) { + if ( ! $_term = wp_cache_get( $term, $taxonomy . ':terms:' . $incrementor ) ) { $_term = $wpdb->get_row( $wpdb->prepare( "SELECT t.*, tt.* FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = %s AND t.term_id = %d LIMIT 1", $taxonomy, $term) ); if ( ! $_term ) return null; diff --git a/wp-includes/version.php b/wp-includes/version.php index 5c54f7f5b0..f8acb9f0eb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30107'; +$wp_version = '4.1-alpha-30108'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.