Remove SSL verification by default for requests to wp-cron.php. Props sivel, rhurling. Fixes #12609.

Built from https://develop.svn.wordpress.org/trunk@28781


git-svn-id: http://core.svn.wordpress.org/trunk@28594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2014-06-19 22:53:19 +00:00
parent a90a53d574
commit 9e85d070a8

View File

@ -278,7 +278,7 @@ function spawn_cron( $gmt_time = 0 ) {
* *
* @type int $timeout The request timeout in seconds. Default .01 seconds. * @type int $timeout The request timeout in seconds. Default .01 seconds.
* @type bool $blocking Whether to set blocking for the request. Default false. * @type bool $blocking Whether to set blocking for the request. Default false.
* @type bool $sslverify Whether to sslverify. Default true. * @type bool $sslverify Whether SSL should be verified for the request. Default false.
* } * }
* } * }
*/ */
@ -289,7 +289,7 @@ function spawn_cron( $gmt_time = 0 ) {
'timeout' => 0.01, 'timeout' => 0.01,
'blocking' => false, 'blocking' => false,
/** This filter is documented in wp-includes/class-http.php */ /** This filter is documented in wp-includes/class-http.php */
'sslverify' => apply_filters( 'https_local_ssl_verify', true ) 'sslverify' => apply_filters( 'https_local_ssl_verify', false )
) )
) ); ) );