mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-08 19:20:03 +00:00
Multisite: Introduce WP_Site_Query
Provides a consistent way to query `$wpdb->blogs` for `WP_Site` objects based on domain, path, site ID, network ID, and more. Introduces and uses `update_site_cache()` and `_prime_site_caches()` to maintain a cached list of `WP_Site` objects for use in multiple queries. Props spacedmonkey, flixos90, DrewAPicture, jeremyfelt, ocean90. See #35791. git-svn-id: https://develop.svn.wordpress.org/trunk@37477 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -99,6 +99,7 @@ require( ABSPATH . WPINC . '/default-filters.php' );
|
||||
|
||||
// Initialize multisite if enabled.
|
||||
if ( is_multisite() ) {
|
||||
require( ABSPATH . WPINC . '/class-wp-site-query.php' );
|
||||
require( ABSPATH . WPINC . '/ms-blogs.php' );
|
||||
require( ABSPATH . WPINC . '/ms-settings.php' );
|
||||
} elseif ( ! defined( 'MULTISITE' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user