Inventory_Presser_Addon_Updater::http_request_args( array $args, string $url )

Disable SSL verification in order to prevent download update failures


Parameters Parameters

$args

(array) (Required)

$url

(string) (Required)


Top ↑

Return Return

(object) $array


Top ↑

Source Source

File: includes/class-addon-updater.php

		public function http_request_args( $args, $url ) {
	
			$verify_ssl = $this->verify_ssl();
			if ( strpos( $url, 'https://' ) !== false && strpos( $url, 'edd_action=package_download' ) ) {
				$args['sslverify'] = $verify_ssl;
			}
			return $args;
	
		}