Make WordPress Core

Ticket #33900: 33900.patch

File 33900.patch, 506 bytes (added by spacedmonkey, 9 years ago)
  • wp-includes/ms-load.php

    diff --git a/wp-includes/ms-load.php b/wp-includes/ms-load.php
    index 451e0dc..899e008 100644
    a b function wpmu_current_site() { 
    347347        _deprecated_function( __FUNCTION__, '3.9' );
    348348        return $current_site;
    349349}
     350
     351/**
     352 * Retrieve the current network ID.
     353 *
     354 * @since 4.4.0
     355 *
     356 * @global object $current_site
     357 *
     358 * @return int Blog id
     359 */
     360function get_current_network_id() {
     361        global $current_site;
     362        return $current_site->id;
     363}