Make sure openssl is available. Props Robert Deaton and rob1n. fixes #3765
git-svn-id: http://svn.automattic.com/wordpress/trunk@4984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8d7839b14c
commit
1f35a9de8f
|
@ -86,7 +86,7 @@ function spawn_cron() {
|
||||||
|
|
||||||
if ($parts['scheme'] == 'https') {
|
if ($parts['scheme'] == 'https') {
|
||||||
// support for SSL was added in 4.3.0
|
// support for SSL was added in 4.3.0
|
||||||
if (version_compare(phpversion(), '4.3.0', '>=')) {
|
if (version_compare(phpversion(), '4.3.0', '>=') && function_exists('openssl_open')) {
|
||||||
$argyle = @fsockopen('ssl://' . $parts['host'], $_SERVER['SERVER_PORT'], $errno, $errstr, 0.01);
|
$argyle = @fsockopen('ssl://' . $parts['host'], $_SERVER['SERVER_PORT'], $errno, $errstr, 0.01);
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue