Make WordPress Core


Ignore:
Timestamp:
01/31/2012 02:30:36 PM (15 years ago)
Author:
nacin
Message:

Only set text_direction based on a locale being RTL if we successfully loaded a locale.mo file. Otherwise we may be in RTL land based on a WPLANG constant but nothing else. fixes #19924.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r19760 r19797  
    261261load_default_textdomain();
    262262
    263 // Find the blog locale.
    264263$locale = get_locale();
    265264$locale_file = WP_LANG_DIR . "/$locale.php";
    266 if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) )
     265if ( ( 0 === validate_file( $locale_file ) ) && is_readable( $locale_file ) )
    267266        require( $locale_file );
    268 unset($locale_file);
     267unset( $locale_file );
    269268
    270269// Pull in locale data after loading text domain.
Note: See TracChangeset for help on using the changeset viewer.