git-svn-id: http://svn.automattic.com/wordpress/trunk@19787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5d761c1cb6
commit
ce311c1035
|
@ -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