wp_cron_conditionally_prevent_sslverify()WP 5.7.0

Disables SSL verification if the cron_request include an HTTPS URL.

This prevents an issue if HTTPS breaks, where there would be a failed attempt to verify HTTPS.

Внутренняя функция — эта функция рассчитана на использование самим ядром. Не рекомендуется использовать эту функцию в своем коде.

No Hooks.

Return

Array. The filtered cron request arguments.

Usage

wp_cron_conditionally_prevent_sslverify( $request );
$request(array) (required)
The cron request arguments.

Changelog

Since 5.7.0 Introduced.

wp_cron_conditionally_prevent_sslverify() code WP 6.3

function wp_cron_conditionally_prevent_sslverify( $request ) {
	if ( 'https' === wp_parse_url( $request['url'], PHP_URL_SCHEME ) ) {
		$request['args']['sslverify'] = false;
	}
	return $request;
}