Changes between Version 2 and Version 3 of Ticket #43162, comment 6
- Timestamp:
- 01/31/2023 09:18:50 AM (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #43162, comment 6
v2 v3 26 26 27 27 28 It seems @johnjamesjacoby is right that there is a ready function `wpmu_delete_blog` which also calls the `wp_delete_site` which also calls `wp_uninitialize_site` and supposedly deletes the corresponding uploads folder. Those functions might need to be revisited as it seems to be logical to delete those along when a subsite is deleted, otherwise a busy multisite can easily be bloated with unnecessary files or possibly have something like a checkbox for confirmation like what @mdifelice proposed, something like the attached image :28 It seems @johnjamesjacoby is right that there is a ready function `wpmu_delete_blog` which also calls the `wp_delete_site` which also calls `wp_uninitialize_site` and supposedly deletes the corresponding uploads folder. Those functions might need to be revisited as it seems to be logical to delete those along when a subsite is deleted, otherwise a busy multisite can easily be bloated with unnecessary files or possibly have something like a checkbox for confirmation like what @mdifelice proposed, something like the attached image and might contain warnings that it may take awhile for large db/uploads: