X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f9001779751f83dc8a10e478bfecb4d8dd5f964c..b137f4ce021b4022c56f452c2eafa7abfcef0a7c:/wp-settings.php diff --git a/wp-settings.php b/wp-settings.php index 2cd12c1c..77fc4614 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -258,7 +258,7 @@ load_default_textdomain(); // Find the blog locale. $locale = get_locale(); $locale_file = WP_LANG_DIR . "/$locale.php"; -if ( is_readable( $locale_file ) ) +if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) require( $locale_file ); unset($locale_file);