mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Do RTL detection based on a translated string, rather than a hardcoded list. Makes things a bit cleaner. fixes #19924, fixes #19600.
git-svn-id: https://develop.svn.wordpress.org/trunk@19836 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -726,8 +726,6 @@ function wp_load_translations_early() {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user