Make WordPress Core


Ignore:
Timestamp:
09/02/2014 08:09:56 AM (10 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/setup-config.php

    r29630 r29669  
    111111            if ( $loaded_language ) {
    112112                load_default_textdomain( $loaded_language );
     113                $GLOBALS['wp_locale'] = new WP_Locale();
    113114            }
    114115        }
     
    145146    case 1:
    146147        load_default_textdomain( $language );
     148        $GLOBALS['wp_locale'] = new WP_Locale();
     149
    147150        setup_config_display_header();
    148151    ?>
     
    185188    case 2:
    186189    load_default_textdomain( $language );
     190    $GLOBALS['wp_locale'] = new WP_Locale();
     191
    187192    $dbname = trim( wp_unslash( $_POST[ 'dbname' ] ) );
    188193    $uname = trim( wp_unslash( $_POST[ 'uname' ] ) );
Note: See TracChangeset for help on using the changeset viewer.