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:
parent
8ee26e699f
commit
0f568497a0
|
@ -10,6 +10,18 @@
|
||||||
* @since 3.0.0
|
* @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 */
|
/** WP_Network class */
|
||||||
require_once( ABSPATH . WPINC . '/class-wp-network.php' );
|
require_once( ABSPATH . WPINC . '/class-wp-network.php' );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue