From 2061a3aa5f0fb06f048a5e7a9aa067f8d4594320 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 20 Mar 2014 02:55:14 +0000 Subject: [PATCH] Return a bool from wp_using_ext_object_cache(), never a null. see #26937. Built from https://develop.svn.wordpress.org/trunk@27634 git-svn-id: http://core.svn.wordpress.org/trunk@27477 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/load.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/load.php b/wp-includes/load.php index f46572e3cc..ffafea79da 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -377,7 +377,7 @@ function wp_using_ext_object_cache( $using = null ) { $current_using = $_wp_using_ext_object_cache; if ( null !== $using ) $_wp_using_ext_object_cache = $using; - return $current_using; + return (bool) $current_using; } /**