WordPress.org

Make WordPress Core

Ticket #16740: wpmu_delete_blog.patch

File wpmu_delete_blog.patch, 355 bytes (added by mblanc, 7 years ago)

Crude small fix actually running here

  • wp-admin/includes/ms.php

    old new  
    5555function wpmu_delete_blog( $blog_id, $drop = false ) {
    5656        global $wpdb;
    5757
     58        if ( 0 == $blog_id || 1 == $blog_id )
     59                return;
     60
    5861        $switch = false;
    5962        if ( $blog_id != $wpdb->blogid ) {
    6063                $switch = true;