mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 07:07:38 +02:00
Set a short timeout for the SSL discovery support so that we don't block requests until the attempt timesout. Fixes #9380 for 2.7.2 props josephscott
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
01725d680a
commit
d6926a1f65
@ -2618,6 +2618,7 @@ function url_is_accessable_via_ssl($url)
|
||||
curl_setopt($ch, CURLOPT_FAILONERROR, true);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
|
||||
|
||||
curl_exec($ch);
|
||||
|
||||
@ -2909,6 +2910,4 @@ function wp_clone( $object ) {
|
||||
}
|
||||
return $can_clone ? clone( $object ) : $object;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user