WordPress.org

Make WordPress Core

Ticket #3765: 3765.2.diff

File 3765.2.diff, 641 bytes (added by rob1n, 8 years ago)
  • wp-includes/cron.php

     
    8686         
    8787        if ($parts['scheme'] == 'https') { 
    8888                // support for SSL was added in 4.3.0 
    89                 if (version_compare(phpversion(), '4.3.0', '>=')) { 
     89                if (version_compare(phpversion(), '4.3.0', '>=') && function_exists('openssl_open')) { 
    9090                        $argyle = @fsockopen('ssl://' . $parts['host'], $_SERVER['SERVER_PORT'], $errno, $errstr, 0.01); 
    9191                } else { 
    9292                        return false; 
     
    188188        return $new_cron; 
    189189} 
    190190 
    191 ?> 
    192  No newline at end of file 
     191?>