Move the global up

git-svn-id: https://develop.svn.wordpress.org/trunk@14181 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-04-21 20:37:54 +00:00
parent 70fdc2138c
commit 3750f4ac5d
1 changed files with 2 additions and 1 deletions

View File

@ -348,9 +348,10 @@ function wp_set_wpdb_vars() {
* @since 3.0.0
*/
function wp_start_object_cache() {
global $_wp_using_ext_object_cache;
$first_init = false;
if ( ! function_exists( 'wp_cache_init' ) ) {
global $_wp_using_ext_object_cache;
if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
require_once ( WP_CONTENT_DIR . '/object-cache.php' );
$_wp_using_ext_object_cache = true;