Changeset 16045
- Timestamp:
- 10/28/2010 12:02:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar/admin-bar-class.php
r16044 r16045 206 206 if ( ! $this->need_to_change_locale ) 207 207 return; 208 /* 208 209 $this->previous_translations = get_translations_for_domain( 'default' ); 209 //$this->adminbar_locale_filter = lambda( '$_', '$GLOBALS["wp_admin_bar"]->user->locale;' );210 $this->adminbar_locale_filter = lambda( '$_', '$GLOBALS["wp_admin_bar"]->user->locale;' ); 210 211 unload_textdomain( 'default' ); 211 212 add_filter( 'locale', $this->adminbar_locale_filter ); 212 213 load_default_textdomain(); 213 214 $this->changed_locale = true; 215 */ 214 216 } 215 217 … … 218 220 if ( ! $this->changed_locale ) 219 221 return; 220 //remove_filter( 'locale', $this->adminbar_locale_filter ); 222 /* 223 remove_filter( 'locale', $this->adminbar_locale_filter ); 221 224 $l10n['default'] = &$this->previous_translations; 225 */ 222 226 } 223 227 }
Note: See TracChangeset
for help on using the changeset viewer.