[wp-trac] [WordPress Trac] #18182: Upload installs of plugins/themes not cleaning up after themselves

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 23 05:22:16 UTC 2011


#18182: Upload installs of plugins/themes not cleaning up after themselves
-----------------------------+-----------------------
 Reporter:  hew              |       Owner:  dd32
     Type:  defect (bug)     |      Status:  accepted
 Priority:  normal           |   Milestone:  3.3
Component:  Upgrade/Install  |     Version:  3.2
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+-----------------------

Comment (by dd32):

 > Ultimately, The uploaded file shouldn't be moved to the uploads
 directory at all with the current uploader

 Unfortunately, I was forgetting about FTP upgrades, the file needs to be
 uploaded and stored for the following request.

 Previously if a user was to upload a theme, but not follow through with
 the install (ie. prompted for FTP details) the zip file wouldn't be
 deleted either.

 Proposed patches:
  * 3.2.x: Just clean up after ourselves after installing.
  * 3.3: We should store uploaded items in the Media Library somehow, and
 as well as deleteing after installing, a cron job should clean up any non-
 installed items.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18182#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list