Ticket #27050: 27050.diff
File 27050.diff, 690 bytes (added by , 11 years ago) |
---|
-
wp-settings.php
300 300 load_default_textdomain(); 301 301 302 302 $locale = get_locale(); 303 $locale_file = WP_LANG_DIR . "/$locale.php"; 304 if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) 305 require( $locale_file ); 303 foreach (array( WP_LANG_DIR . "/$locale.php", WP_LANG_DIR . "/$locale/$locale.php" ) as $locale_file) { 304 if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) { 305 require( $locale_file ); 306 break; 307 } 308 } 306 309 unset( $locale_file ); 307 310 308 311 // Pull in locale data after loading text domain.