Skip to content

Commit

Permalink
WP_LANG_DIR is trusted, just need to check $locale. props SergeyBiryu…
Browse files Browse the repository at this point in the history
…kov, fixes #19924.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Feb 4, 2012
1 parent 068819c commit bf68de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit bf68de7

Please sign in to comment.