WordPress.org

Make WordPress Core

Ticket #12609: 12609.2.diff

File 12609.2.diff, 611 bytes (added by sivel, 5 years ago)

Per dd32 there are problems with some hosts where head requests are not processed properly. Just relax the ssl verification for cron requests.

  • wp-includes/cron.php

     
    231231        set_transient( 'doing_cron', $local_time ); 
    232232 
    233233        $cron_url = get_option( 'siteurl' ) . '/wp-cron.php?doing_wp_cron'; 
    234         wp_remote_post( $cron_url, array('timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters('https_local_ssl_verify', true)) ); 
     234        wp_remote_post( $cron_url, array( 'timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', false ) ) ); 
    235235} 
    236236 
    237237/**