Make WordPress Core

Ticket #23405: 23405.2.diff

File 23405.2.diff, 504 bytes (added by hirozed, 12 years ago)
  • wp-includes/ms-blogs.php

     
    252252function refresh_blog_details( $blog_id ) {
    253253        $blog_id = (int) $blog_id;
    254254        $details = get_blog_details( $blog_id, false );
     255        if ( -1 == $details ){
     256                $details = (object) array(
     257                        'blog_id' => $blog_id,
     258                        'domain' => null,
     259                        'path' => null
     260                );
     261        }
    255262
    256263        clean_blog_cache( $details );
    257264