Make WordPress Core

Changeset 27275


Ignore:
Timestamp:
02/25/2014 08:52:05 PM (11 years ago)
Author:
markjaquith
Message:

Fix a sometimes notice in wpmu_current_site()

props johnjamesjacoby. see #27003.

File:
1 edited

Legend:

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

    r27178 r27275  
    251251
    252252        if ( count( $networks ) <= 1 ) {
    253             $current_site = wp_get_network( $networks[0]->id );
     253            $current_site = wp_get_network( $networks[0] );
    254254
    255255            $current_site->blog_id = $wpdb->get_var( $wpdb->prepare( "SELECT blog_id
Note: See TracChangeset for help on using the changeset viewer.