From 6d489e8a7f6045c4fcc8b4e9d54fd5fede5468a9 Mon Sep 17 00:00:00 2001
From: Erick Hitter <ehitter@gmail.com>
Date: Thu, 27 Feb 2014 11:44:42 -0800
Subject: [PATCH] Helps to return values after modifying them, as I failed to
 do in 01b7283c0.

---
 object-cache.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/object-cache.php b/object-cache.php
index d57774d..f4bdda4 100644
--- a/object-cache.php
+++ b/object-cache.php
@@ -1023,6 +1023,8 @@ class WP_Object_Cache {
 	 */
 	protected function prepare_value_for_redis( $value ) {
 		$value = maybe_serialize( $value );
+
+		return $value;
 	}
 
 	/**
@@ -1033,6 +1035,8 @@ class WP_Object_Cache {
 	 */
 	protected function restore_value_from_redis( $value ) {
 		$value = maybe_unserialize( $value );
+
+		return $value;
 	}
 
 	/**
-- 
GitLab