Make sure openssl is available. Props Robert Deaton and rob1n. fixes #3765
git-svn-id: https://develop.svn.wordpress.org/trunk@4984 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f77b96fc84
commit
ab521be7dd
@ -86,7 +86,7 @@ function spawn_cron() {
|
||||
|
||||
if ($parts['scheme'] == 'https') {
|
||||
// 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);
|
||||
} else {
|
||||
return false;
|
||||
@ -188,4 +188,4 @@ function _upgrade_cron_array($cron) {
|
||||
return $new_cron;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user