--- wp-settings.php.orig 2012-07-29 08:41:26.196191202 +1000 +++ wp-settings.php 2012-07-29 09:11:57.277156037 +1000 @@ -57,6 +57,13 @@ // Check if we're in WP_DEBUG mode. wp_debug_mode(); +// Load early WordPress files. +require( ABSPATH . WPINC . '/option.php' ); +require( ABSPATH . WPINC . '/plugin.php' ); + +// Start the WordPress object cache, or an external object cache if the drop-in is present. +wp_start_object_cache(); + // For an advanced caching plugin to use. Uses a static drop-in because you would only want one. if ( WP_CACHE ) WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' ); @@ -69,7 +76,6 @@ require( ABSPATH . WPINC . '/functions.php' ); require( ABSPATH . WPINC . '/class-wp.php' ); require( ABSPATH . WPINC . '/class-wp-error.php' ); -require( ABSPATH . WPINC . '/plugin.php' ); require( ABSPATH . WPINC . '/pomo/mo.php' ); // Include the wpdb class and, if present, a db.php database drop-in. @@ -79,9 +85,6 @@ $GLOBALS['table_prefix'] = $table_prefix; wp_set_wpdb_vars(); -// Start the WordPress object cache, or an external object cache if the drop-in is present. -wp_start_object_cache(); - // Attach the default filters. require( ABSPATH . WPINC . '/default-filters.php' );