WordPress.org

Make WordPress Core

Changeset 19824


Ignore:
Timestamp:
02/04/12 00:32:34 (3 years ago)
Author:
nacin
Message:

WP_LANG_DIR is trusted, just need to check $locale. props SergeyBiryukov, fixes #19924.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r19797 r19824  
    263263$locale = get_locale(); 
    264264$locale_file = WP_LANG_DIR . "/$locale.php"; 
    265 if ( ( 0 === validate_file( $locale_file ) ) && is_readable( $locale_file ) ) 
     265if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) 
    266266    require( $locale_file ); 
    267267unset( $locale_file ); 
Note: See TracChangeset for help on using the changeset viewer.