WordPress.org

Make WordPress Core

Changeset 23511


Ignore:
Timestamp:
02/28/13 16:53:48 (2 years ago)
Author:
nacin
Message:

In insert_blog(), make sure we retrieve the insertion ID from wpdb before calling a function that could invoke queries. props feedmeastraycat. fixes #23400.

File:
1 edited

Legend:

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

    r23438 r23511  
    11051105        return false; 
    11061106 
    1107     refresh_blog_details($wpdb->insert_id); 
    1108     return $wpdb->insert_id; 
     1107    $blog_id = $wpdb->insert_id; 
     1108    refresh_blog_details( $blog_id ); 
     1109    return $blog_id; 
    11091110} 
    11101111 
Note: See TracChangeset for help on using the changeset viewer.