From 36491e09809fb883249bbed24590e339d2321244 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Thu, 1 Feb 2007 09:16:15 +0000 Subject: [PATCH] make sure nothing going into the object cache is being passed by reference. fixes #3726 git-svn-id: http://svn.automattic.com/wordpress/trunk@4856 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/cache.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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; ?>