WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/20/2016 10:03:52 PM (3 years ago)
Author:
jeremyfelt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r37428 r37477  
    100100// Initialize multisite if enabled.
    101101if ( is_multisite() ) {
     102    require( ABSPATH . WPINC . '/class-wp-site-query.php' );
    102103    require( ABSPATH . WPINC . '/ms-blogs.php' );
    103104    require( ABSPATH . WPINC . '/ms-settings.php' );
Note: See TracChangeset for help on using the changeset viewer.