mirror of
https://github.com/WordPress/WordPress.git
synced 2024-07-04 02:35:47 +02:00
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:
parent
fb5b146060
commit
ccdfa822c3
|
@ -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
Block a user