Make WordPress Core

Changeset 37226


Ignore:
Timestamp:
04/17/2016 05:11:05 AM (8 years ago)
Author:
jeremyfelt
Message:

Multisite: Make $current_site and $current_blog explicitly global.

See #34941.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-settings.php

    r36393 r37226  
    1010 * @since 3.0.0
    1111 */
     12
     13/**
     14 * Objects representing the current network and current site.
     15 *
     16 * These may be populated through a custom `sunrise.php`. If not, then this
     17 * file will attempt to populate them based on the current request.
     18 *
     19 * @global WP_Network $current_site The current network.
     20 * @global object     $current_blog The current site.
     21 * @since 3.0.0
     22 */
     23global $current_site, $current_blog;
    1224
    1325/** WP_Network class */
Note: See TracChangeset for help on using the changeset viewer.