From 13732ff5cc28ba98832f2ad2d795bf1f9227763f Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 28 Oct 2010 12:02:52 +0000 Subject: [PATCH] Comment it out better git-svn-id: http://svn.automattic.com/wordpress/trunk@16045 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/admin-bar/admin-bar-class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-includes/admin-bar/admin-bar-class.php b/wp-includes/admin-bar/admin-bar-class.php index 5c80d00c73..c9a03aca1f 100644 --- a/wp-includes/admin-bar/admin-bar-class.php +++ b/wp-includes/admin-bar/admin-bar-class.php @@ -205,20 +205,24 @@ class WP_Admin_Bar { $this->need_to_change_locale = ( get_locale() != $this->user->locale ); if ( ! $this->need_to_change_locale ) return; + /* $this->previous_translations = get_translations_for_domain( 'default' ); - //$this->adminbar_locale_filter = lambda( '$_', '$GLOBALS["wp_admin_bar"]->user->locale;' ); + $this->adminbar_locale_filter = lambda( '$_', '$GLOBALS["wp_admin_bar"]->user->locale;' ); unload_textdomain( 'default' ); add_filter( 'locale', $this->adminbar_locale_filter ); load_default_textdomain(); $this->changed_locale = true; + */ } function unload_user_locale_translations() { global $l10n; if ( ! $this->changed_locale ) return; - //remove_filter( 'locale', $this->adminbar_locale_filter ); + /* + remove_filter( 'locale', $this->adminbar_locale_filter ); $l10n['default'] = &$this->previous_translations; + */ } } ?>