From bcb59bfb14cbfa79335fc9e411aae56b060da85d Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Sun, 23 Feb 2025 21:51:10 +0000 Subject: [PATCH] Coding Standards: Rename variable in `update_meta_cache()` for accuracy. Renames the variable `$cache_key` to `$cache_group` in `update_meta_cache()` for accuracy. Follow up to [11943]. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59862 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/meta.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php index 4d8c49bfd1..6982e618c3 100644 --- a/src/wp-includes/meta.php +++ b/src/wp-includes/meta.php @@ -1165,10 +1165,10 @@ function update_meta_cache( $meta_type, $object_ids ) { return (bool) $check; } - $cache_key = $meta_type . '_meta'; + $cache_group = $meta_type . '_meta'; $non_cached_ids = array(); $cache = 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 => $cached_object ) { if ( false === $cached_object ) { @@ -1214,7 +1214,7 @@ function update_meta_cache( $meta_type, $object_ids ) { } $data[ $id ] = $cache[ $id ]; } - wp_cache_add_multiple( $data, $cache_key ); + wp_cache_add_multiple( $data, $cache_group ); return $cache; }