Make WordPress Core

Changeset 59862


Ignore:
Timestamp:
02/23/2025 09:51:10 PM (21 months ago)
Author:
peterwilsoncc
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/meta.php

    r59657 r59862  
    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 ) {
    … …  
    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;
Note: See TracChangeset for help on using the changeset viewer.