1 | Index: ../../../wp-includes/default-constants.php |
---|
2 | =================================================================== |
---|
3 | --- ../../../wp-includes/default-constants.php (revision 14894) |
---|
4 | +++ ../../../wp-includes/default-constants.php (working copy) |
---|
5 | @@ -82,8 +82,13 @@ |
---|
6 | * |
---|
7 | * @since 2.6.0 |
---|
8 | */ |
---|
9 | - if ( !defined('WP_PLUGIN_DIR') ) |
---|
10 | - define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash |
---|
11 | + if ( !defined('WP_PLUGIN_DIR') ){ |
---|
12 | + $pluginDir=WP_CONTENT_DIR . '/plugins'; |
---|
13 | + if($linked=readlink($pluginDir)){ |
---|
14 | + $pluginDir = WP_CONTENT_DIR.'/'.$linked; |
---|
15 | + } |
---|
16 | + define( 'WP_PLUGIN_DIR', $pluginDir ); // full path, no trailing slash |
---|
17 | + } |
---|
18 | |
---|
19 | /** |
---|
20 | * Allows for the plugins directory to be moved from the default location. |
---|