Skip to content

Commit

Permalink
Update docbloc of download_url()
Browse files Browse the repository at this point in the history
- Added reference to wp_delete_file() instead of unlink()

Signed-off-by: Beda Schmid <beda@tukutoi.com>
  • Loading branch information
smileBeda authored Oct 28, 2023
1 parent ee48683 commit 7a24947
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wp-admin/includes/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,9 @@ function wp_handle_sideload( &$file, $overrides = false, $time = null ) {
/**
* Downloads a URL to a local temporary file using the WordPress HTTP API.
*
* Please note that the calling function must unlink() the file.
* Please note that the calling function must `wp_delete_file()` the file.
*
* @link https://developer.wordpress.org/reference/functions/wp_delete_file/
*
* @since 2.5.0
* @since 5.2.0 Signature Verification with SoftFail was added.
Expand Down

0 comments on commit 7a24947

Please sign in to comment.