mirror of
https://github.com/WordPress/WordPress.git
synced 2025-12-05 11:24:25 +01:00
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:
parent
817670fded
commit
d60c55b6c1
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user