add file array key similar to other functions

See also https://github.com/woocommerce/woocommerce/blob/master/includes/wc-user-functions.php#L458-L461
This commit is contained in:
Andrew Minion 2018-01-09 20:41:35 -05:00
parent d7718df0f9
commit 0b2fbe906b
1 changed files with 4 additions and 0 deletions

View File

@ -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'],
),
);
}
}