Multisite: Introduce get_network().

Given a network ID or network object, `get_network()` retrieves network data in the same vein as `get_site()` or `get_post()`. This will allow for clean retrieval of networks from a primed cache when `WP_Network_Query` is implemented.

Props flixos90.
See #32504.

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


git-svn-id: http://core.svn.wordpress.org/trunk@37834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt
2016-06-28 21:18:30 +00:00
parent 5bf4b20d31
commit 5d478fbe5e
2 changed files with 44 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-alpha-37892';
$wp_version = '4.6-alpha-37893';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.