From e202926f73d22c18574351215d8ed2fb9a9ce3ee Mon Sep 17 00:00:00 2001 From: Patrick Rauland Date: Thu, 4 Sep 2014 10:31:38 -0600 Subject: [PATCH] remove check to make sure order is complete before downloading. fixes #6166 --- includes/class-wc-download-handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-download-handler.php b/includes/class-wc-download-handler.php index 425cf92f90b..59038f61433 100644 --- a/includes/class-wc-download-handler.php +++ b/includes/class-wc-download-handler.php @@ -91,7 +91,7 @@ class WC_Download_Handler { if ( $order_id ) { $order = wc_get_order( $order_id ); - if ( ! $order->is_download_permitted() || $order->post_status != 'wc-completed' ) { + if ( ! $order->is_download_permitted() ) { wp_die( __( 'Invalid order.', 'woocommerce' ) . ' ' . __( 'Go to homepage', 'woocommerce' ) . '', '', array( 'response' => 404 ) ); } }