From 57cabf48fcbe0482f9f66446335ecb734a6e4aae Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 11 Dec 2008 18:08:58 +0000 Subject: [PATCH] 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 --- wp-includes/http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index 0e15db6f3..f452a610d 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -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;