[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
Thu Jul 9 19:06:11 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 psykro):

 Replying to [comment:6 azaozz]:
 > Yes, that happens for all packages if the installing/updating was
 interrupted for some reason. There's a cron job to do cleanup:
 https://github.com/WordPress/WordPress/blob/master/wp-admin/includes
 /class-file-upload-upgrader.php#L87 in two hours.
 > However these can be deleted immediately when the user has clicked
 "Cancel and go back". Patch coming up.
 >

 Forgive me for jumping the gun here then :-) I've just been following this
 for 3 of it's 11 years, and I was excited to test it out before the 5.5
 release.

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


More information about the wp-trac mailing list