Strip out some junk from trunk. See #14772.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-10-28 08:35:55 +00:00
parent 22839d2a49
commit 418e9d705d
1 changed files with 0 additions and 20 deletions

View File

@ -200,25 +200,5 @@ class WP_Admin_Bar {
return false;
}
function load_user_locale_translations() {
$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;' );
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 );
$l10n['default'] = &$this->previous_translations;
}
}
?>