Changeset 16044
- Timestamp:
- 10/28/2010 12:01:44 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar/admin-bar-class.php
r16042 r16044 201 201 } 202 202 203 // TODO: Convert to a core feature for multisite or remove 203 204 function load_user_locale_translations() { 204 205 $this->need_to_change_locale = ( get_locale() != $this->user->locale ); … … 206 207 return; 207 208 $this->previous_translations = get_translations_for_domain( 'default' ); 208 $this->adminbar_locale_filter = lambda( '$_', '$GLOBALS["wp_admin_bar"]->user->locale;' );209 //$this->adminbar_locale_filter = lambda( '$_', '$GLOBALS["wp_admin_bar"]->user->locale;' ); 209 210 unload_textdomain( 'default' ); 210 211 add_filter( 'locale', $this->adminbar_locale_filter ); … … 217 218 if ( ! $this->changed_locale ) 218 219 return; 219 remove_filter( 'locale', $this->adminbar_locale_filter );220 //remove_filter( 'locale', $this->adminbar_locale_filter ); 220 221 $l10n['default'] = &$this->previous_translations; 221 222 }
Note: See TracChangeset
for help on using the changeset viewer.