WordPress.org

Make WordPress Core

Changeset 10025


Ignore:
Timestamp:
12/03/2008 07:56:05 PM (13 years ago)
Author:
ryan
Message:

Round timeouts less then 1 but greater than 0 to 1 for curl transport. see #8086

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/http.php

    r9901 r10025  
    974974        }
    975975
     976        // If timeout is a float less than 1, round it up to 1.
     977        if ( $r['timeout'] > 0 && $r['timeout'] < 1 )
     978            $r['timeout'] = 1;
     979
    976980        $handle = curl_init();
    977981        curl_setopt( $handle, CURLOPT_URL, $url);
Note: See TracChangeset for help on using the changeset viewer.