summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wp-includes/cache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wp-includes/cache.php b/src/wp-includes/cache.php
index a3b5f79153..5b9259481a 100644
--- a/src/wp-includes/cache.php
+++ b/src/wp-includes/cache.php
@@ -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 );
}
/**