Update class-wc-download-handler.php

This commit is contained in:
Ovidiu Liuta 2022-03-22 14:46:14 +02:00 committed by GitHub
parent 4c97d8e757
commit 9d9b7464d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ class WC_Download_Handler {
// Paths that begin with '//' are always remote URLs.
if ( '//' === substr( $file_path, 0, 2 ) ) {
$file_path = (is_ssl() ? 'https:' : 'http:') . $file_path;
$file_path = ( is_ssl() ? 'https:' : 'http:' ) . $file_path;
return array(
'remote_file' => true,
'file_path' => apply_filters( 'woocommerce_download_parse_remote_file_path', $file_path ),