Move blogs table related functions to blogs.php. Include it before ms-settings.php so that caching API can be used instead of direct queries. see #11644

git-svn-id: http://svn.automattic.com/wordpress/trunk@13125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2010-02-13 22:35:11 +00:00
parent 05f7724075
commit 731eada144
3 changed files with 503 additions and 490 deletions

View File

@@ -74,8 +74,10 @@ wp_set_wpdb_vars();
wp_start_object_cache();
// Initialize multisite if enabled.
if ( is_multisite() )
if ( is_multisite() ) {
require( ABSPATH . WPINC . '/blogs.php' );
require( ABSPATH . WPINC . '/ms-settings.php' );
}
// Load early WordPress files.
require( ABSPATH . WPINC . '/plugin.php' );