Make WordPress Core

Ticket #23405: 23405-01.patch

File 23405-01.patch, 498 bytes (added by beezeee, 12 years ago)

Force clearing 'blog-details' cache in refresh_blog_details if no details returned from first call to get_blog_details

  • 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       
     256        if ( !$details ) {
     257                wp_cache_delete( $blog_id, 'blog-details' );
     258                $details = get_blog_details( $blog_id, false );
     259        }
    255260
    256261        clean_blog_cache( $details );
    257262