[wp-trac] [WordPress Trac] #34772: get_contents won't unlink tempfile when ftp_fget returns false
WordPress Trac
noreply at wordpress.org
Mon Nov 23 21:56:59 UTC 2015
#34772: get_contents won't unlink tempfile when ftp_fget returns false
----------------------------+-----------------------------
Reporter: ruud@… | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Filesystem API | Version: 4.3.1
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
Hi,
on line 104 of class-wp-filesystem-ftpext.php the get_contents.php
functions bails out after an failed ftp-fget attempt.
However because wp_tempnam() creates and touches a fresh new file, more
and more files get onto the server.
The unlink call at line 114 isn't used anymore
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34772>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list