mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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
This commit is contained in:
parent
f75e5a023c
commit
2061a3aa5f
@ -377,7 +377,7 @@ function wp_using_ext_object_cache( $using = null ) {
|
|||||||
$current_using = $_wp_using_ext_object_cache;
|
$current_using = $_wp_using_ext_object_cache;
|
||||||
if ( null !== $using )
|
if ( null !== $using )
|
||||||
$_wp_using_ext_object_cache = $using;
|
$_wp_using_ext_object_cache = $using;
|
||||||
return $current_using;
|
return (bool) $current_using;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user