Cache API: Consistently pass the $expire value as an integer in cache functions.

Follow-up to [52700].

Props dilipbheda.
Fixes #63364.
Built from https://develop.svn.wordpress.org/trunk@60206


git-svn-id: http://core.svn.wordpress.org/trunk@59542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2025-04-29 22:44:37 +00:00
parent 817670fded
commit d60c55b6c1
2 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ function wp_cache_add( $key, $data, $group = '', $expire = 0 ) {
function wp_cache_add_multiple( array $data, $group = '', $expire = 0 ) {
global $wp_object_cache;
return $wp_object_cache->add_multiple( $data, $group, $expire );
return $wp_object_cache->add_multiple( $data, $group, (int) $expire );
}
/**
@ -129,7 +129,7 @@ function wp_cache_set( $key, $data, $group = '', $expire = 0 ) {
function wp_cache_set_multiple( array $data, $group = '', $expire = 0 ) {
global $wp_object_cache;
return $wp_object_cache->set_multiple( $data, $group, $expire );
return $wp_object_cache->set_multiple( $data, $group, (int) $expire );
}
/**

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.9-alpha-60205';
$wp_version = '6.9-alpha-60206';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.