From 97107772428a0e084edd351e1983851433366d45 Mon Sep 17 00:00:00 2001 From: Ken Bass Date: Thu, 4 Apr 2013 13:03:59 -0400 Subject: [PATCH 1/2] Switch download_url to non-SSL --- classes/class-wc-customer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class-wc-customer.php b/classes/class-wc-customer.php index cc067dc7b72..f334d4509ec 100644 --- a/classes/class-wc-customer.php +++ b/classes/class-wc-customer.php @@ -643,7 +643,7 @@ class WC_Customer { } $downloads[] = array( - 'download_url' => add_query_arg( array( 'download_file' => $result->product_id, 'order' => $result->order_key, 'email' => $result->user_email, 'key' => $result->download_id ), trailingslashit( home_url() ) ), + 'download_url' => add_query_arg( array( 'download_file' => $result->product_id, 'order' => $result->order_key, 'email' => $result->user_email, 'key' => $result->download_id ), trailingslashit( home_url( '', 'http') ) ), 'download_id' => $result->download_id, 'product_id' => $result->product_id, 'download_name' => $download_name, From 2236ec499dba8631ece9dbd5e7b28e819fb52d43 Mon Sep 17 00:00:00 2001 From: Ken Bass Date: Thu, 4 Apr 2013 13:07:54 -0400 Subject: [PATCH 2/2] Fix whitespace --- classes/class-wc-customer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class-wc-customer.php b/classes/class-wc-customer.php index f334d4509ec..8fbf5ec0105 100644 --- a/classes/class-wc-customer.php +++ b/classes/class-wc-customer.php @@ -643,7 +643,7 @@ class WC_Customer { } $downloads[] = array( - 'download_url' => add_query_arg( array( 'download_file' => $result->product_id, 'order' => $result->order_key, 'email' => $result->user_email, 'key' => $result->download_id ), trailingslashit( home_url( '', 'http') ) ), + 'download_url' => add_query_arg( array( 'download_file' => $result->product_id, 'order' => $result->order_key, 'email' => $result->user_email, 'key' => $result->download_id ), trailingslashit( home_url( '', 'http' ) ) ), 'download_id' => $result->download_id, 'product_id' => $result->product_id, 'download_name' => $download_name,