From 4d3f98e8bda5fe3ef976b5a4f6aaf9cd670e9d14 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 22 Sep 2011 22:49:30 +0000 Subject: [PATCH] Explicitly globalize wp_locale for the UT framework. props scribu, fixes #17749. git-svn-id: https://develop.svn.wordpress.org/trunk@18756 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-settings.php b/wp-settings.php index d003424ca6..6c5346f98b 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -275,7 +275,7 @@ require( ABSPATH . WPINC . '/locale.php' ); * @global object $wp_locale * @since 2.1.0 */ -$wp_locale = new WP_Locale(); +$GLOBALS['wp_locale'] = new WP_Locale(); // Load the functions for the active theme, for both parent and child theme if applicable. if ( ! defined( 'WP_INSTALLING' ) || 'wp-activate.php' === $pagenow ) {