updated plugin Easy Digital Downloads version 3.1.4

This commit is contained in:
2023-07-19 21:08:59 +00:00
committed by Gitium
parent a7f6efbebb
commit 9a42dc17d2
109 changed files with 12446 additions and 5563 deletions

View File

@ -2138,16 +2138,15 @@ class EDD_CLI extends WP_CLI_Command {
$file_id_key = array_rand( $download_ids_with_files[ $product_id ], 1 );
$file_key = $download_ids_with_files[ $product_id ][ $file_id_key ];
edd_add_file_download_log( array(
'product_id' => absint( $product_id ),
'file_id' => absint( $file_key ),
'order_id' => absint( $order_id ),
'price_id' => absint( $price_id ),
'customer_id' => $order->customer_id,
'ip' => edd_get_ip(),
'user_agent' => 'EDD; WPCLI; download_logs;',
'date_created' => $order->date_completed,
) );
edd_record_download_in_log(
absint( $product_id ),
absint( $file_key ),
array(),
edd_get_ip(),
absint( $order_id ),
absint( $price_id ),
'EDD; WPCLI; download_logs;'
);
$progress->tick();
$i ++;