Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit bf68de769e00577513c4ea42107e10c5bee1b24f 1 parent 068819c
nacin authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  wp-settings.php
2  wp-settings.php
@@ -262,7 +262,7 @@
262 262
263 263 $locale = get_locale();
264 264 $locale_file = WP_LANG_DIR . "/$locale.php";
265   -if ( ( 0 === validate_file( $locale_file ) ) && is_readable( $locale_file ) )
  265 +if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) )
266 266 require( $locale_file );
267 267 unset( $locale_file );
268 268

0 comments on commit bf68de7

Please sign in to comment.
Something went wrong with that request. Please try again.