Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.9/wp-admin/includes/file.php

    r12310 r12545  
    236236
    237237        // You may have had one or more 'wp_handle_upload_prefilter' functions error out the file.  Handle that gracefully.
    238         if ( isset( $file['error'] ) && !ctype_digit( $file['error'] ) && $file['error'] )
     238        if ( isset( $file['error'] ) && !is_numeric( $file['error'] ) && $file['error'] )
    239239                return $upload_error_handler( $file, $file['error'] );
    240240
    … …  
    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' => 300));
    462462
    463463        if ( is_wp_error($response) ) {
Note: See TracChangeset for help on using the changeset viewer.