Multisite: Make `$current_site` and `$current_blog` explicitly global.

See #34941.


git-svn-id: https://develop.svn.wordpress.org/trunk@37226 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt 2016-04-17 05:11:05 +00:00
parent 8ee26e699f
commit 0f568497a0
1 changed files with 12 additions and 0 deletions

View File

@ -10,6 +10,18 @@
* @since 3.0.0
*/
/**
* Objects representing the current network and current site.
*
* These may be populated through a custom `sunrise.php`. If not, then this
* file will attempt to populate them based on the current request.
*
* @global WP_Network $current_site The current network.
* @global object $current_blog The current site.
* @since 3.0.0
*/
global $current_site, $current_blog;
/** WP_Network class */
require_once( ABSPATH . WPINC . '/class-wp-network.php' );