Skip to content

Commit bcb59bf

Browse files
committed
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
1 parent fc96319 commit bcb59bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-includes/meta.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,10 +1165,10 @@ function update_meta_cache( $meta_type, $object_ids ) {
11651165
return (bool) $check;
11661166
}
11671167

1168-
$cache_key = $meta_type . '_meta';
1168+
$cache_group = $meta_type . '_meta';
11691169
$non_cached_ids = array();
11701170
$cache = array();
1171-
$cache_values = wp_cache_get_multiple( $object_ids, $cache_key );
1171+
$cache_values = wp_cache_get_multiple( $object_ids, $cache_group );
11721172

11731173
foreach ( $cache_values as $id => $cached_object ) {
11741174
if ( false === $cached_object ) {
@@ -1214,7 +1214,7 @@ function update_meta_cache( $meta_type, $object_ids ) {
12141214
}
12151215
$data[ $id ] = $cache[ $id ];
12161216
}
1217-
wp_cache_add_multiple( $data, $cache_key );
1217+
wp_cache_add_multiple( $data, $cache_group );
12181218

12191219
return $cache;
12201220
}

0 commit comments

Comments
 (0)