scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Wordpress 3.1.4
[autoinstalls/wordpress.git]
/
wp-settings.php
diff --git
a/wp-settings.php
b/wp-settings.php
index 2cd12c1c122001b7db11c4b2c0425566c5013337..77fc4614c173ffbd096188ccd8a5af0f1d1d7d7e 100644
(file)
--- a/
wp-settings.php
+++ b/
wp-settings.php
@@
-258,7
+258,7
@@
load_default_textdomain();
// Find the blog locale.
$locale = get_locale();
$locale_file = WP_LANG_DIR . "/$locale.php";
-if ( is_readable( $locale_file ) )
+if (
( 0 === validate_file( $locale ) ) &&
is_readable( $locale_file ) )
require( $locale_file );
unset($locale_file);