From 0b2fbe906bee0012f8abb24195125059f31f708e Mon Sep 17 00:00:00 2001 From: Andrew Minion Date: Tue, 9 Jan 2018 20:41:35 -0500 Subject: [PATCH] add file array key similar to other functions See also https://github.com/woocommerce/woocommerce/blob/master/includes/wc-user-functions.php#L458-L461 --- includes/class-wc-order.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/class-wc-order.php b/includes/class-wc-order.php index 94d173adea2..1294e6bf799 100644 --- a/includes/class-wc-order.php +++ b/includes/class-wc-order.php @@ -1377,6 +1377,10 @@ class WC_Order extends WC_Abstract_Order { 'order_key' => $this->get_order_key(), 'downloads_remaining' => $file['downloads_remaining'], 'access_expires' => $file['access_expires'], + 'file' => array( + 'name' => $file['name'], + 'file' => $file['file'], + ), ); } }