[wp-trac] [WordPress Trac] #59761: download_url DocBloc suggests to use unlink() over wp_delete_file()
WordPress Trac
noreply at wordpress.org
Sun Oct 29 00:15:03 UTC 2023
#59761: download_url DocBloc suggests to use unlink() over wp_delete_file()
-------------------------+-------------------------------------
Reporter: bedas | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.5
Component: HTTP API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs, coding-standards
-------------------------+-------------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"57027" 57027]:
{{{
#!CommitTicketReference repository="" revision="57027"
Docs: Improve documentation for `wp_tempnam()` and `download_url()`.
Instead of mentioning the `unlink()` function specifically, the DocBlock
should state that the calling function must delete or move the temporary
file.
Follow-up to [6779], [12151].
Props bedas.
Fixes #59761.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59761#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list