[wp-trac] [WordPress Trac] #19009: wpmu_delete_blog() can wipe out an entire network
WordPress Trac
wp-trac at lists.automattic.com
Wed Oct 19 23:19:30 UTC 2011
#19009: wpmu_delete_blog() can wipe out an entire network
--------------------------+-----------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.3
Component: Multisite | Version: 3.0
Severity: critical | Keywords:
--------------------------+-----------------
Steps to reproduce:
1. Create a network.
2. Create a second blog.
3. Via BLOG_ID_CURRENT_SITE, set the second blog to be the main blog.
4. 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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19009>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list