summaryrefslogtreecommitdiffstats
path: root/wp-settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-settings.php')
-rw-r--r--wp-settings.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/wp-settings.php b/wp-settings.php
index 54a24df..d82c124 100644
--- a/wp-settings.php
+++ b/wp-settings.php
@@ -90,8 +90,14 @@ if ( defined('WP_CACHE') )
require (ABSPATH . 'wp-content/advanced-cache.php');
define('WPINC', 'wp-includes');
-if ( !defined('LANGDIR') )
- define('LANGDIR', WPINC . '/languages'); // no leading slash, no trailing slash
+
+if ( !defined('LANGDIR') ) {
+ if ( file_exists(ABSPATH . 'wp-content/languages') && @is_dir(ABSPATH . 'wp-content/languages') )
+ define('LANGDIR', 'wp-content/languages'); // no leading slash, no trailing slash
+ else
+ define('LANGDIR', WPINC . '/languages'); // no leading slash, no trailing slash
+}
+
if ( !defined('PLUGINDIR') )
define('PLUGINDIR', 'wp-content/plugins'); // no leading slash, no trailing slash
if ( file_exists(ABSPATH . 'wp-content/db.php') )