git-svn-id: https://develop.svn.wordpress.org/trunk@19787 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ea092db65b
commit
7f118d4b05
|
@ -724,6 +724,8 @@ function wp_load_translations_early() {
|
|||
foreach ( $locations as $location ) {
|
||||
if ( file_exists( $location . '/' . $locale . '.mo' ) ) {
|
||||
load_textdomain( 'default', $location . '/' . $locale . '.mo' );
|
||||
if ( defined( 'WP_SETUP_CONFIG' ) && file_exists( $location . '/admin-' . $locale . '.mo' ) )
|
||||
load_textdomain( 'default', $location . '/admin-' . $locale . '.mo' );
|
||||
if ( WP_Locale::is_locale_rtl( $locale ) )
|
||||
$text_direction = 'rtl';
|
||||
break 2;
|
||||
|
|
Loading…
Reference in New Issue