Make WordPress Core

Changeset 25827


Ignore:
Timestamp:
10/17/2013 05:16:41 AM (12 years ago)
Author:
nacin
Message:

Avoid a notice in is_main_network() when called in single site. see #25030.

File:
1 edited

Legend:

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

    r25713 r25827  
    33503350    global $current_site, $wpdb;
    33513351
    3352     $current_network_id = (int) $current_site->id;
    3353 
    33543352    if ( ! is_multisite() )
    33553353        return true;
     3354
     3355    $current_network_id = (int) $current_site->id;
    33563356
    33573357    if ( ! $network_id )
Note: See TracChangeset for help on using the changeset viewer.