Merge pull request #6167 from BFTrick/iss-6166

Fix for 6166
This commit is contained in:
Mike Jolley 2014-09-05 10:01:50 +01:00
commit b03536de0f
1 changed files with 1 additions and 1 deletions

View File

@ -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' ) . ' <a href="' . esc_url( home_url() ) . '" class="wc-forward">' . __( 'Go to homepage', 'woocommerce' ) . '</a>', '', array( 'response' => 404 ) );
}
}