WordPress.org

Make WordPress Core

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 added

Note: See TracChangeset for help on using the changeset viewer.