From 0f568497a048e71209fbf7441d71d9bd90334100 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Sun, 17 Apr 2016 05:11:05 +0000 Subject: [PATCH] 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 --- src/wp-includes/ms-settings.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/wp-includes/ms-settings.php b/src/wp-includes/ms-settings.php index 351a926b49..b44bf2f57f 100644 --- a/src/wp-includes/ms-settings.php +++ b/src/wp-includes/ms-settings.php @@ -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' );