WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/13/2013 03:22:48 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Use get_current_site() instead of the $current_site global when possible.

props jeremyfelt.
fixes #25158.

File:
1 edited

Legend:

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

    r26115 r26120  
    5353 */
    5454function wpmu_delete_blog( $blog_id, $drop = false ) {
    55     global $wpdb, $current_site;
     55    global $wpdb;
    5656
    5757    $switch = false;
     
    8282
    8383    update_blog_status( $blog_id, 'deleted', 1 );
     84
     85    $current_site = get_current_site();
    8486
    8587    // Don't destroy the initial, main, or root blog.
Note: See TracChangeset for help on using the changeset viewer.