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:
parent
978206a223
commit
ee2ccaaf3b
|
@ -1062,7 +1062,7 @@ class WP_Http_Curl {
|
||||||
* @return boolean False means this class can not be used, true means it can.
|
* @return boolean False means this class can not be used, true means it can.
|
||||||
*/
|
*/
|
||||||
function test() {
|
function test() {
|
||||||
if ( function_exists('curl_init') )
|
if ( function_exists('curl_init') && function_exists('curl_exec') )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue