WordPress.org

Make WordPress Core

Ticket #23400: ms-functions.diff

File ms-functions.diff, 579 bytes (added by feedmeastraycat, 15 months ago)
  • wp-includes/ms-functions.php

     
    11121112        $result = $wpdb->insert( $wpdb->blogs, array('site_id' => $site_id, 'domain' => $domain, 'path' => $path, 'registered' => current_time('mysql')) ); 
    11131113        if ( ! $result ) 
    11141114                return false; 
    1115  
    1116         refresh_blog_details($wpdb->insert_id); 
    1117         return $wpdb->insert_id; 
     1115         
     1116        $blog_id = $wpdb->insert_id; 
     1117        refresh_blog_details($blog_id); 
     1118        return $blog_id; 
    11181119} 
    11191120 
    11201121/**