Ticket #40153: 40153.diff
File 40153.diff, 703 bytes (added by , 8 years ago) |
---|
-
src/wp-admin/includes/file.php
500 500 if ( ! $tmpfname ) 501 501 return new WP_Error('http_no_file', __('Could not create Temporary file.')); 502 502 503 $ response = wp_safe_remote_get( $url, array( 'timeout' => $timeout, 'stream' => true, 'filename' => $tmpfname ) );503 $args = apply_filters( 'download_url_args', array( 'timeout' => $timeout, 'stream' => true, 'filename' => $tmpfname ) ); 504 504 505 $response = wp_safe_remote_get( $url, $args); 505 506 if ( is_wp_error( $response ) ) { 506 507 unlink( $tmpfname ); 507 508 return $response;