[wp-trac] [WordPress Trac] #50612: Cancelling a plugin update from an uploaded .zip file leaves the plugin .zip in the uploads directory
WordPress Trac
noreply at wordpress.org
Fri Jul 10 00:14:32 UTC 2020
#50612: Cancelling a plugin update from an uploaded .zip file leaves the plugin
.zip in the uploads directory
-----------------------------+-----------------------
Reporter: psykro | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.5
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+-----------------------
Comment (by azaozz):
In 50612.diff:
- Fix the "Cancel and go back" button to do a cleanup (delete the
attachment and file).
- In the Media Library list view, hide attachments for recently uploaded
install/update packages when scheduled to be deleted in the next two
hours.
- Hide the "Replace current with uploaded" button in 1 hour and 59
minutes. The attachment/file will be deleted in 2 hours.
Think this fixes the edge cases, please test :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50612#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list