WordPress.org

Make WordPress Core

Ticket #19924: 19924.patch

File 19924.patch, 467 bytes (added by SergeyBiryukov, 6 years ago)
  • wp-settings.php

     
    262262
    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 );
    268268