Test for curl_exec as well to catch hosts that disable it but not curl_init. Fixes #8577 for trunk props sivel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0575c94329
commit
57cabf48fc
|
@ -1062,7 +1062,7 @@ class WP_Http_Curl {
|
|||
* @return boolean False means this class can not be used, true means it can.
|
||||
*/
|
||||
function test() {
|
||||
if ( function_exists('curl_init') )
|
||||
if ( function_exists('curl_init') && function_exists('curl_exec') )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue