diff --git a/functions.php b/functions.php index 339a4ab40..1501a8713 100644 --- a/functions.php +++ b/functions.php @@ -237,6 +237,8 @@ if ($fp) { curl_setopt($ch, CURLOPT_FILE, $fp); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15); + curl_setopt($ch, CURLOPT_TIMEOUT, 45); curl_exec($ch); curl_close($ch); fclose($fp);