Remove SSL verification by default for requests to wp-cron.php. Props sivel, rhurling. Fixes #12609.
git-svn-id: https://develop.svn.wordpress.org/trunk@28781 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e27b672b22
commit
036c2b5fca
@ -278,7 +278,7 @@ function spawn_cron( $gmt_time = 0 ) {
|
||||
*
|
||||
* @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 $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,
|
||||
'blocking' => false,
|
||||
/** 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 )
|
||||
)
|
||||
) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user