mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 11:14:36 +00:00
Multisite: Introduce WP_Network_Query.
Provides a consistent way to query `$wpdb->site` for `WP_Network` objects based on domain, path, network ID, and (main) site ID. Introduces and uses update_network_cache() and _prime_network_caches() to maintain a cached list of WP_Network objects for use in multiple queries. Props flixos90. See #32504. git-svn-id: https://develop.svn.wordpress.org/trunk@37894 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -115,6 +115,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 . '/class-wp-network-query.php' );
|
||||
require( ABSPATH . WPINC . '/ms-blogs.php' );
|
||||
require( ABSPATH . WPINC . '/ms-settings.php' );
|
||||
} elseif ( ! defined( 'MULTISITE' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user