Make WordPress Core

Ticket #2887: wp-settings.php.diff

File wp-settings.php.diff, 1.0 KB (added by Sewar, 20 years ago)

Load default localization domain before load plugins

  • Sewar/WordPress/SVN/wp-settings.php

     
    174174                require(ABSPATH . '/my-hacks.php');
    175175}
    176176
     177// Load the default text localization domain.
     178load_default_textdomain();
     179
     180// Pull in locale data after loading text domain.
     181require_once(ABSPATH . WPINC . '/locale.php');
     182
     183$wp_locale = new WP_Locale();
     184
    177185if ( get_settings('active_plugins') ) {
    178186        $current_plugins = get_settings('active_plugins');
    179187        if ( is_array($current_plugins) ) {
     
    212220
    213221define('TEMPLATEPATH', get_template_directory());
    214222
    215 // Load the default text localization domain.
    216 load_default_textdomain();
    217 
    218 // Pull in locale data after loading text domain.
    219 require_once(ABSPATH . WPINC . '/locale.php');
    220 
    221 $wp_locale = new WP_Locale();
    222 
    223223// Load functions for active theme.
    224224if ( file_exists(TEMPLATEPATH . "/functions.php") )
    225225        include(TEMPLATEPATH . "/functions.php");