WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/16/2013 01:45:28 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Use get_current_site() instead of the $current_site global in wp-admin/admin-header.php and is_main_network().

fixes #25158.

File:
1 edited

Legend:

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

    r26191 r26235  
    33463346 */
    33473347function is_main_network( $network_id = null ) {
    3348     global $current_site, $wpdb;
     3348    global $wpdb;
    33493349
    33503350    if ( ! is_multisite() )
    33513351        return true;
    33523352
    3353     $current_network_id = (int) $current_site->id;
     3353    $current_network_id = (int) get_current_site()->id;
    33543354
    33553355    if ( ! $network_id )
Note: See TracChangeset for help on using the changeset viewer.