From fc43b28deccaa86e709cc0d199a421dc07341185 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 20 Mar 2023 16:42:19 +0000 Subject: [PATCH] Cache API: Correct the second parameter's name in `_get_non_cached_ids()`. The parameter represents the cache group, not the cache key. Follow-up to [19918]. Props johnjamesjacoby, spacedmonkey. Fixes #40420. Built from https://develop.svn.wordpress.org/trunk@55566 git-svn-id: http://core.svn.wordpress.org/trunk@55078 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 2112323704..17e5a7c2ea 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -7009,11 +7009,11 @@ function wp_debug_backtrace_summary( $ignore_class = null, $skip_frames = 0, $pr * @since 3.4.0 * @since 6.1.0 This function is no longer marked as "private". * - * @param int[] $object_ids Array of IDs. - * @param string $cache_key The cache bucket to check against. + * @param int[] $object_ids Array of IDs. + * @param string $cache_group The cache group to check against. * @return int[] Array of IDs not present in the cache. */ -function _get_non_cached_ids( $object_ids, $cache_key ) { +function _get_non_cached_ids( $object_ids, $cache_group ) { $object_ids = array_filter( $object_ids, '_validate_cache_id' ); $object_ids = array_unique( array_map( 'intval', $object_ids ), SORT_NUMERIC ); @@ -7022,7 +7022,7 @@ function _get_non_cached_ids( $object_ids, $cache_key ) { } $non_cached_ids = array(); - $cache_values = wp_cache_get_multiple( $object_ids, $cache_key ); + $cache_values = wp_cache_get_multiple( $object_ids, $cache_group ); foreach ( $cache_values as $id => $value ) { if ( ! $value ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 853bf4f221..b8c98d8f37 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55565'; +$wp_version = '6.3-alpha-55566'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.