Skip to content

Commit

Permalink
Multisite: Introduce WP_Network_Query.
Browse files Browse the repository at this point in the history
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.

Built from https://develop.svn.wordpress.org/trunk@37894


git-svn-id: http://core.svn.wordpress.org/trunk@37835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
jeremyfelt committed Jun 28, 2016
1 parent 5d478fb commit f111fdb
Show file tree
Hide file tree
Showing 4 changed files with 629 additions and 1 deletion.
Loading

0 comments on commit f111fdb

Please sign in to comment.