Make WordPress Core

Changeset 16044


Ignore:
Timestamp:
10/28/2010 12:01:44 PM (13 years ago)
Author:
westi
Message:

Add a todo. See #14772.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar/admin-bar-class.php

    r16042 r16044  
    201201    }
    202202
     203    // TODO: Convert to a core feature for multisite or remove
    203204    function load_user_locale_translations() {
    204205        $this->need_to_change_locale = ( get_locale() != $this->user->locale );
     
    206207            return;
    207208        $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;' );
    209210        unload_textdomain( 'default' );
    210211        add_filter( 'locale', $this->adminbar_locale_filter );
     
    217218        if ( ! $this->changed_locale )
    218219            return;
    219         remove_filter( 'locale', $this->adminbar_locale_filter );
     220        //remove_filter( 'locale', $this->adminbar_locale_filter );
    220221        $l10n['default'] = &$this->previous_translations;
    221222    }
Note: See TracChangeset for help on using the changeset viewer.