WordPress.org

Make WordPress Core

Changeset 16045


Ignore:
Timestamp:
10/28/2010 12:02:52 PM (9 years ago)
Author:
westi
Message:

Comment it out better

File:
1 edited

Legend:

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

    r16044 r16045  
    206206        if ( ! $this->need_to_change_locale )
    207207            return;
     208        /*
    208209        $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;' );
    210211        unload_textdomain( 'default' );
    211212        add_filter( 'locale', $this->adminbar_locale_filter );
    212213        load_default_textdomain();
    213214        $this->changed_locale = true;
     215        */
    214216    }
    215217
     
    218220        if ( ! $this->changed_locale )
    219221            return;
    220         //remove_filter( 'locale', $this->adminbar_locale_filter );
     222        /*
     223        remove_filter( 'locale', $this->adminbar_locale_filter );
    221224        $l10n['default'] = &$this->previous_translations;
     225        */
    222226    }
    223227}
Note: See TracChangeset for help on using the changeset viewer.