From ce82eb864ac060243472b55e97cfaaff180e7e23 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 20 Mar 2023 16:40:12 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@55566 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 2112323704..17e5a7c2ea 100644 --- a/src/wp-includes/functions.php +++ b/src/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 ) {