WordPress.org

Make WordPress Core

Ticket #16740: 16740.patch

File 16740.patch, 484 bytes (added by hakre, 3 years ago)

Mind the vartype (%d is used later on)

  • wp-admin/includes/ms.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk bare
     
    5454 */ 
    5555function wpmu_delete_blog( $blog_id, $drop = false ) { 
    5656        global $wpdb; 
     57         
     58        $blog_id = (int) max( 1, $blog_id ); 
     59        if ( 1 === $blog_id ) 
     60                return; 
    5761 
    5862        $switch = false; 
    5963        if ( $blog_id != $wpdb->blogid ) {