| 191 | | if ( function_exists( 'set_include_path' ) ) |
|---|
| 192 | | set_include_path( get_include_path() . PATH_SEPARATOR . ABSPATH . WPINC ); |
|---|
| 193 | | else if ( function_exists( 'ini_set' ) ) |
|---|
| 194 | | ini_set( 'include_path', ini_get('include_path') . PATH_SEPARATOR . ABSPATH . WPINC ); |
|---|
| 195 | | else |
|---|
| 196 | | define('WP_INCLUDE_PATH_DISABLED', true); |
|---|
| | 192 | if ( file_exists(WP_CONTENT_DIR . '/languages') && @is_dir(WP_CONTENT_DIR . '/languages') ) { |
|---|
| | 193 | define('WP_LANG_DIR', WP_CONTENT_DIR . '/languages'); // no leading slash, no trailing slash, full path, not relative to ABSPATH |
|---|
| | 194 | if (!defined('LANGDIR')) { |
|---|
| | 195 | // Old static relative path maintained for limited backwards compatibility - won't work in some cases |
|---|
| | 196 | define('LANGDIR', 'wp-content/languages'); |
|---|
| | 197 | } |
|---|
| | 198 | } else { |
|---|
| | 199 | define('WP_LANG_DIR', ABSPATH . WPINC . '/languages'); // no leading slash, no trailing slash, full path, not relative to ABSPATH |
|---|
| | 200 | if (!defined('LANGDIR')) { |
|---|
| | 201 | // Old relative path maintained for backwards compatibility |
|---|
| | 202 | define('LANGDIR', WPINC . '/languages'); |
|---|
| | 203 | } |
|---|
| | 204 | } |
|---|