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
This commit is contained in:
parent
5b0a2e6d06
commit
fc43b28dec
|
@ -7010,10 +7010,10 @@ function wp_debug_backtrace_summary( $ignore_class = null, $skip_frames = 0, $pr
|
|||
* @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 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 ) {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue