Changeset 4446

Show
Ignore:
Timestamp:
11/04/06 05:20:39 (2 years ago)
Author:
markjaquith
Message:

make /languages/ directory default to /wp-content/languages/ with fallback to /wp-includes/languages/. Props Nazgul. fixes #3315

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-settings.php

    r4345 r4446  
    8383 
    8484define('WPINC', 'wp-includes'); 
    85 if ( !defined('LANGDIR') ) 
    86     define('LANGDIR', WPINC . '/languages');   // no leading slash, no trailing slash 
     85 
     86if ( !defined('LANGDIR') ) { 
     87    if ( file_exists(ABSPATH . 'wp-content/languages') && @is_dir(ABSPATH . 'wp-content/languages') ) 
     88        define('LANGDIR', 'wp-content/languages'); // no leading slash, no trailing slash 
     89    else 
     90        define('LANGDIR', WPINC . '/languages'); // no leading slash, no trailing slash 
     91
     92 
    8793if ( !defined('PLUGINDIR') ) 
    8894    define('PLUGINDIR', 'wp-content/plugins'); // no leading slash, no trailing slash