Test for curl_exec as well to catch hosts that disable it but not curl_init. Fixes #8577 for 2.7 branch props sivel.

git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-12-11 18:10:30 +00:00
parent fb5b146060
commit ccdfa822c3

View File

@ -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;