mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
WP_LANG_DIR is trusted, just need to check $locale. props SergeyBiryukov, fixes #19924.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
068819c1d5
commit
bf68de769e
@ -262,7 +262,7 @@ load_default_textdomain();
|
|||||||
|
|
||||||
$locale = get_locale();
|
$locale = get_locale();
|
||||||
$locale_file = WP_LANG_DIR . "/$locale.php";
|
$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 );
|
require( $locale_file );
|
||||||
unset( $locale_file );
|
unset( $locale_file );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user