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: https://develop.svn.wordpress.org/trunk@10190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-12-11 18:08:58 +00:00
parent 978206a223
commit ee2ccaaf3b
1 changed files with 1 additions and 1 deletions

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;