WordPress.org

Make WordPress Core

Ticket #20950: missing-cache-delete.diff

File missing-cache-delete.diff, 813 bytes (added by wonderboymusic, 19 months ago)
  • wp-includes/ms-blogs.php

     
    251251 
    252252        wp_cache_delete( $blog_id , 'blog-details' ); 
    253253        wp_cache_delete( $blog_id . 'short' , 'blog-details' ); 
    254         wp_cache_delete( md5( $details->domain . $details->path )  , 'blog-lookup' ); 
     254        wp_cache_delete( md5( $wpdb->escape( $details->domain ) . $wpdb->escape( $details->path ) )  , 'blog-lookup' ); 
    255255        wp_cache_delete( 'current_blog_' . $details->domain, 'site-options' ); 
    256256        wp_cache_delete( 'current_blog_' . $details->domain . $details->path, 'site-options' ); 
     257        wp_cache_delete( 'get_id_from_blogname_' . $details->blogname, 'blog-details' ); 
    257258 
    258259        do_action( 'refresh_blog_details', $blog_id ); 
    259260}