wpmu_delete_blog() can wipe out an entire network
|Reported by:||nacin||Owned by:||nacin|
Steps to reproduce:
- Create a network.
- Create a second blog.
- Via BLOG_ID_CURRENT_SITE, set the second blog to be the main blog.
- Delete the original blog at the / path.
wpmu_delete_blog() will wipe out all blogs LIKE blog\_prefix%, which nukes the entire network.
Solution: iterate over and drop $wpdb->tables('blog') only.