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

Description #

Disable SSL verification in order to prevent download update failures

Parameters #

  • $args
    array (Required)
  • $url
    string (Required)

Source #

File: admin/updater.php

	public function http_request_args( $args, $url ) {
		// If it is an https request and we are performing a package download, disable ssl verification
		if ( strpos( $url, 'https://' ) !== false && strpos( $url, 'edd_action=package_download' ) ) {
			$args['sslverify'] = false;
		}
		return $args;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment