summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wp-content/blogs.php2
-rw-r--r--wp-settings.php5
2 files changed, 4 insertions, 3 deletions
diff --git a/wp-content/blogs.php b/wp-content/blogs.php
index 18c1a96..ab7e944 100644
--- a/wp-content/blogs.php
+++ b/wp-content/blogs.php
@@ -1,5 +1,5 @@
<?php
-define( 'BLOGDEFINITION', true ); // this prevents most of WP from being loaded
+define( 'SHORTINIT', true ); // this prevents most of WP from being loaded
require_once( dirname( dirname( __FILE__) ) . '/wp-config.php' ); // absolute includes are faster
if (
diff --git a/wp-settings.php b/wp-settings.php
index a777789..021c082 100644
--- a/wp-settings.php
+++ b/wp-settings.php
@@ -147,8 +147,9 @@ else
wp_cache_init();
-define( "UPLOADS", "wp-content/blogs.dir/{$wpdb->blogid}/files/" );
-if( defined( "BLOGDEFINITION" ) && constant( "BLOGDEFINITION" ) == true )
+if( !defined( "UPLOADS" ) )
+ define( "UPLOADS", "wp-content/blogs.dir/{$wpdb->blogid}/files/" );
+if( defined( "SHORTINIT" ) && constant( "SHORTINIT" ) == true ) // stop most of WP being loaded, we just want the basics
return;