Permalink
Browse files

WP_LANG_DIR is trusted, just need to check $locale. props SergeyBiryu…

…kov, fixes #19924.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 068819c commit bf68de769e00577513c4ea42107e10c5bee1b24f nacin committed Feb 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-settings.php
View
2 wp-settings.php
@@ -262,7 +262,7 @@
$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 );

0 comments on commit bf68de7

Please sign in to comment.