Changeset 19797
- Timestamp:
- 01/31/2012 02:30:36 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-includes/locale.php (modified) (1 diff)
-
wp-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/locale.php
r19761 r19797 188 188 $this->number_format['decimal_point'] = ('number_format_decimal_point' == $trans) ? '.' : $trans; 189 189 190 // Locale-specific tweaks 191 if ( self::is_locale_rtl( get_locale() ) ) 192 $this->text_direction = 'rtl'; 193 194 // Import the $text_direction global. 190 // Set text direction. 195 191 if ( isset( $GLOBALS['text_direction'] ) ) 196 192 $this->text_direction = $GLOBALS['text_direction']; 193 elseif ( is_textdomain_loaded( 'default' ) && self::is_locale_rtl( get_locale() ) ) 194 $this->text_direction = 'rtl'; 197 195 } 198 196 -
trunk/wp-settings.php
r19760 r19797 261 261 load_default_textdomain(); 262 262 263 // Find the blog locale.264 263 $locale = get_locale(); 265 264 $locale_file = WP_LANG_DIR . "/$locale.php"; 266 if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) )265 if ( ( 0 === validate_file( $locale_file ) ) && is_readable( $locale_file ) ) 267 266 require( $locale_file ); 268 unset( $locale_file);267 unset( $locale_file ); 269 268 270 269 // Pull in locale data after loading text domain.
Note: See TracChangeset
for help on using the changeset viewer.