From 1b72380e1038fe550d869a188c4e5c5a48c2445d Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Tue, 8 Mar 2022 04:25:06 +0000 Subject: [PATCH] Taxonomy: Improve code quality within `_prime_term_caches()`. Remove the second parameter on the call to `update_term_cache()` from within the function `_prime_term_caches()`. The since deprecated parameter of the former was at one point a string, never a boolean. Props david.binda, SergeyBiryukov, azouamauriac. Fixes #55162. Built from https://develop.svn.wordpress.org/trunk@52830 git-svn-id: http://core.svn.wordpress.org/trunk@52419 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 17cd0b8fe4..97122037c3 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -3990,7 +3990,7 @@ function _prime_term_caches( $term_ids, $update_meta_cache = true ) { if ( ! empty( $non_cached_ids ) ) { $fresh_terms = $wpdb->get_results( sprintf( "SELECT t.*, tt.* FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE t.term_id IN (%s)", implode( ',', array_map( 'intval', $non_cached_ids ) ) ) ); - update_term_cache( $fresh_terms, $update_meta_cache ); + update_term_cache( $fresh_terms ); if ( $update_meta_cache ) { update_termmeta_cache( $non_cached_ids ); diff --git a/wp-includes/version.php b/wp-includes/version.php index bf450968e3..3c04d38e55 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52829'; +$wp_version = '6.0-alpha-52830'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.