WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/28/2016 09:26:48 PM (4 years ago)
Author:
jeremyfelt
Message:

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.

File:
1 edited

Legend:

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

    r37890 r37894  
    116116if ( is_multisite() ) {
    117117    require( ABSPATH . WPINC . '/class-wp-site-query.php' );
     118    require( ABSPATH . WPINC . '/class-wp-network-query.php' );
    118119    require( ABSPATH . WPINC . '/ms-blogs.php' );
    119120    require( ABSPATH . WPINC . '/ms-settings.php' );
Note: See TracChangeset for help on using the changeset viewer.