From 868c0a8cdf34dade4d262f159372c2e72a199a49 Mon Sep 17 00:00:00 2001
From: Erick Hitter <ehitter@gmail.com>
Date: Sat, 20 Jul 2013 13:42:25 -0400
Subject: [PATCH] Add two methods to the `WP_Object_Class` class whose absence
 causes fatal errors in WP 3.6.

The `WP_Object_Class` implementation already leverages the data these two methods manipulate.
---
 object-cache.php | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/object-cache.php b/object-cache.php
index 1f312da..35a063e 100644
--- a/object-cache.php
+++ b/object-cache.php
@@ -1010,4 +1010,28 @@ class WP_Object_Cache {
 
 		return false;
 	}
-}
+
+	/**
+	 * Sets the list of global groups.
+	 *
+	 * @param array $groups List of groups that are global.
+	 */
+	function add_global_groups( $groups ) {
+		$groups = (array) $groups;
+
+		$groups = array_fill_keys( $groups, true );
+		$this->global_groups = array_merge( $this->global_groups, $groups );
+	}
+
+	/**
+	 * Sets the list of groups not to be cached by Redis.
+	 *
+	 * @param array $groups List of groups that are to be ignored.
+	 */
+	function add_non_persistent_groups( $groups ) {
+		$groups = (array) $groups;
+
+		$groups = array_fill_keys( $groups, true );
+		$this->no_redis_groups = array_merge( $this->no_redis_groups, $groups );
+	}
+}
-- 
GitLab