Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #43162, comment 6


Ignore:
Timestamp:
01/31/2023 08:54:17 AM (3 years ago)
Author:
carl-alberto
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43162, comment 6

    v1 v2  
    2626
    2727
    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:
    29 
    30 https://www.screencast.com/t/tO4WHqjZnYO
     28It 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: