From 929486fd19ed0de3687fe703687c8494d83264f5 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 4 Feb 2012 00:32:34 +0000 Subject: [PATCH] WP_LANG_DIR is trusted, just need to check $locale. props SergeyBiryukov, fixes #19924. git-svn-id: https://develop.svn.wordpress.org/trunk@19824 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-settings.php b/wp-settings.php index 3040030426..6a273024cb 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -262,7 +262,7 @@ load_default_textdomain(); $locale = get_locale(); $locale_file = WP_LANG_DIR . "/$locale.php"; -if ( ( 0 === validate_file( $locale_file ) ) && is_readable( $locale_file ) ) +if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) require( $locale_file ); unset( $locale_file );