WordPress.org

Make WordPress Core

Ticket #11551: 11551.diff

File 11551.diff, 530 bytes (added by ryan, 10 years ago)
  • wp-admin/includes/file.php

     
    458458        if ( ! $handle )
    459459                return new WP_Error('http_no_file', __('Could not create Temporary file'));
    460460
    461         $response = wp_remote_get($url, array('timeout' => 60));
     461        $response = wp_remote_get($url, array('timeout' => apply_filters('download_url_timeout', 300)));
    462462
    463463        if ( is_wp_error($response) ) {
    464464                fclose($handle);