Changeset 57027
- Timestamp:
- 10/29/2023 12:14:46 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r56825 r57027 657 657 * Returns a filename of a temporary unique file. 658 658 * 659 * Please note that the calling function must unlink() this itself.659 * Please note that the calling function must delete or move the file. 660 660 * 661 661 * The filename is based off the passed parameter or defaults to the current unix timestamp, … … 1140 1140 * Downloads a URL to a local temporary file using the WordPress HTTP API. 1141 1141 * 1142 * Please note that the calling function must unlink()the file.1142 * Please note that the calling function must delete or move the file. 1143 1143 * 1144 1144 * @since 2.5.0 … … 1154 1154 */ 1155 1155 function download_url( $url, $timeout = 300, $signature_verification = false ) { 1156 // WARNING: The file is not automatically deleted, the script must unlink()the file.1156 // WARNING: The file is not automatically deleted, the script must delete or move the file. 1157 1157 if ( ! $url ) { 1158 1158 return new WP_Error( 'http_no_url', __( 'Invalid URL Provided.' ) );
Note: See TracChangeset
for help on using the changeset viewer.