WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/02/2014 08:09:56 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Re-initialize $wp_locale global after changing the default textdomain on installation screens.

props ocean90.
fixes #29452.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/install.php

    r29630 r29669  
    205205            if ( $loaded_language ) {
    206206                load_default_textdomain( $loaded_language );
     207                $GLOBALS['wp_locale'] = new WP_Locale();
    207208            }
    208209        }
     
    222223        if ( ! empty( $langugage ) && load_default_textdomain( $langugage ) ) {
    223224            $loaded_language = $langugage;
     225            $GLOBALS['wp_locale'] = new WP_Locale();
    224226        } else {
    225227            $loaded_language = 'en_US';
Note: See TracChangeset for help on using the changeset viewer.