mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 21:48:36 +01:00
make /languages/ directory default to /wp-content/languages/ with fallback to /wp-includes/languages/. Props Nazgul. fixes #3315
git-svn-id: http://svn.automattic.com/wordpress/trunk@4446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5cd38edafe
commit
54d7ccba56
@ -82,8 +82,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') )
|
||||
|
Loading…
Reference in New Issue
Block a user