From 67ce2d8d4f586443fe0c55afee04afca1fff03e3 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 19 Nov 2006 00:12:57 +0000 Subject: [PATCH] Ref more singletons. git-svn-id: https://develop.svn.wordpress.org/trunk@4486 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/cache.php | 4 +--- wp-settings.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-includes/cache.php b/wp-includes/cache.php index f59f641b18..79dd89913b 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -30,9 +30,7 @@ function wp_cache_get($id, $flag = '') { } function wp_cache_init() { - global $wp_object_cache; - - $wp_object_cache = new WP_Object_Cache(); + $GLOBALS['wp_object_cache'] =& new WP_Object_Cache(); } function wp_cache_replace($key, $data, $flag = '', $expire = 0) { diff --git a/wp-settings.php b/wp-settings.php index 165492a725..ada0b8b511 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -241,7 +241,7 @@ load_default_textdomain(); // Pull in locale data after loading text domain. require_once(ABSPATH . WPINC . '/locale.php'); -$wp_locale = new WP_Locale(); +$wp_locale =& new WP_Locale(); // Load functions for active theme. if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists(STYLESHEETPATH . '/functions.php') )