Make WordPress Core

Changeset 4446


Ignore:
Timestamp:
11/04/2006 05:20:39 AM (18 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.