From fb0adf94b3ee24ab072162d8e95b209bc69ab0b9 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 20 Mar 2014 02:54:26 +0000 Subject: [PATCH] Return a bool from wp_using_ext_object_cache(), never a null. see #26937. git-svn-id: https://develop.svn.wordpress.org/trunk@27634 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/load.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php index f46572e3cc..ffafea79da 100644 --- a/src/wp-includes/load.php +++ b/src/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; } /**