[wp-trac] [WordPress Trac] #30121: wpmu_delete_blog function clears the whole uploads directory

WordPress Trac noreply at wordpress.org
Tue Oct 28 19:12:18 UTC 2014


#30121: wpmu_delete_blog function clears the whole uploads directory
--------------------------------+-------------------------
 Reporter:  katazina            |       Owner:  jeremyfelt
     Type:  defect (bug)        |      Status:  assigned
 Priority:  high                |   Milestone:  4.1
Component:  Networks and Sites  |     Version:  3.5
 Severity:  critical            |  Resolution:
 Keywords:  needs-patch         |     Focuses:  multisite
--------------------------------+-------------------------

Comment (by nofearinc):

 Was just looking into that as well, after the blog is marked as delete,
 but using the same URL and confirming, the `$dh` is for example `/wp-
 content/uploads/2013` - getting the base there returns the uploads, and
 then it's iterated over and deleted completely.

 Given the folder structure I'd say that we could add a conditional and
 skip the process if `uploads` is returned instead of the blog ID.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30121#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list