diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 8bad63ad6..299c33fbe 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -1,6 +1,7 @@ add($key, $data, $flag, $expire); } @@ -37,12 +38,14 @@ function wp_cache_init() { function wp_cache_replace($key, $data, $flag = '', $expire = 0) { global $wp_object_cache; + $data = unserialize(serialize($data)); return $wp_object_cache->replace($key, $data, $flag, $expire); } function wp_cache_set($key, $data, $flag = '', $expire = 0) { global $wp_object_cache; + $data = unserialize(serialize($data)); return $wp_object_cache->set($key, $data, $flag, $expire); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 3bf2ede06..b02793009 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -3,6 +3,6 @@ // This holds the version number in a separate file so we can bump it without cluttering the SVN $wp_version = '2.2-bleeding'; -$wp_db_version = 4773; +$wp_db_version = 4774; ?>