diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-03-16 21:26:22 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-03-16 21:26:22 +0000 |
commit | 98190363e52787ef578afddbdd8d927ab703b286 (patch) | |
tree | f8715a72f160cde91319554bd896e962329a70d8 | |
parent | 9afdf9abfe4ea567916bec8951d728722025eb5f (diff) | |
download | wordpress-mu-98190363e52787ef578afddbdd8d927ab703b286.tar.gz wordpress-mu-98190363e52787ef578afddbdd8d927ab703b286.tar.xz wordpress-mu-98190363e52787ef578afddbdd8d927ab703b286.zip |
Add MUPLUGINDIR constant so that mu-plugins can be relocated
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@919 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r-- | wp-settings.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wp-settings.php b/wp-settings.php index 93ee03e..25833c6 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -220,7 +220,10 @@ if( defined( "WP_INSTALLING" ) == false ) { } $wpdb->hide_errors(); -$plugins = glob( ABSPATH . 'wp-content/mu-plugins/*.php' ); +if( defined( 'MUPLUGINDIR' ) == false ) + define( 'MUPLUGINDIR', 'wp-content/mu-plugins' ); + +$plugins = glob( ABSPATH . MUPLUGINDIR . '/*.php' ); if( is_array( $plugins ) ) { foreach ( $plugins as $plugin ) { if( is_file( $plugin ) ) |