Ref more singletons.
git-svn-id: https://develop.svn.wordpress.org/trunk@4486 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
27c7018cdc
commit
67ce2d8d4f
|
@ -30,9 +30,7 @@ function wp_cache_get($id, $flag = '') {
|
||||||
}
|
}
|
||||||
|
|
||||||
function wp_cache_init() {
|
function wp_cache_init() {
|
||||||
global $wp_object_cache;
|
$GLOBALS['wp_object_cache'] =& new WP_Object_Cache();
|
||||||
|
|
||||||
$wp_object_cache = new WP_Object_Cache();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function wp_cache_replace($key, $data, $flag = '', $expire = 0) {
|
function wp_cache_replace($key, $data, $flag = '', $expire = 0) {
|
||||||
|
|
|
@ -241,7 +241,7 @@ load_default_textdomain();
|
||||||
// Pull in locale data after loading text domain.
|
// Pull in locale data after loading text domain.
|
||||||
require_once(ABSPATH . WPINC . '/locale.php');
|
require_once(ABSPATH . WPINC . '/locale.php');
|
||||||
|
|
||||||
$wp_locale = new WP_Locale();
|
$wp_locale =& new WP_Locale();
|
||||||
|
|
||||||
// Load functions for active theme.
|
// Load functions for active theme.
|
||||||
if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists(STYLESHEETPATH . '/functions.php') )
|
if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists(STYLESHEETPATH . '/functions.php') )
|
||||||
|
|
Loading…
Reference in New Issue