WordPress.org

Make WordPress Core

Ticket #16766: clipboard.patch

File clipboard.patch, 1.1 KB (added by hakre, 7 years ago)

ticket ID for that feature missing, so remove

  • wp-includes/class-wp-admin-bar.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk bare
     
    208208                return false;
    209209        }
    210210
    211         // TODO: Convert to a core feature for multisite or remove
    212211        function load_user_locale_translations() {
    213212                $this->need_to_change_locale = ( get_locale() != $this->user->locale );
    214213                if ( ! $this->need_to_change_locale )
    215214                        return;
    216                 /*
    217                 $this->previous_translations = get_translations_for_domain( 'default' );
    218                 $this->adminbar_locale_filter = lambda( '$_', '$GLOBALS["wp_admin_bar"]->user->locale;' );
    219                 unload_textdomain( 'default' );
    220                 add_filter( 'locale', $this->adminbar_locale_filter );
    221                 load_default_textdomain();
    222                 $this->changed_locale = true;
    223                 */
    224215        }
    225216
    226217        function unload_user_locale_translations() {
    227218                global $l10n;
    228219                if ( ! $this->changed_locale )
    229220                        return;
    230                 /*
    231                 remove_filter( 'locale', $this->adminbar_locale_filter );
    232                 $l10n['default'] = &$this->previous_translations;
    233                 */
    234221        }
    235222}
    236223?>