• janh2

    (@janh2)


    uninstall.php’s handling of multisite should be fixed:

    
    $blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
    
    	foreach ( $blog_ids as $blog_id ) {
    		switch_to_blog( $blog_id );
    
    		// Delete blog option
    		delete_option( $option_name );
    	}
    
    	restore_current_blog();
    

    restore_current_blog() should go inside the foreach loop, as it needs to be called after every switch_to_blog.

  • The topic ‘Multisite handling in uninstall.php’ is closed to new replies.