From ab521be7ddf78cc31d32bf28fd277c1647d7770f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 7 Mar 2007 04:16:06 +0000 Subject: [PATCH] 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 --- wp-includes/cron.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/cron.php b/wp-includes/cron.php index 34e671dade..9908dd09ee 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -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; } -?> \ No newline at end of file +?>