From cd89246b878317c6161e3f73d4c889e74890b99e Mon Sep 17 00:00:00 2001 From: Josh Smith Date: Wed, 23 Aug 2017 03:16:50 +0000 Subject: [PATCH] [#12517] Deprecate process_product_file_download_paths function since download log ids should no longer change based on file paths --- includes/class-wc-post-data.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/class-wc-post-data.php b/includes/class-wc-post-data.php index 66783627002..3621a93a9fa 100644 --- a/includes/class-wc-post-data.php +++ b/includes/class-wc-post-data.php @@ -465,12 +465,13 @@ class WC_Post_Data { /** * Update changed downloads. * + * @deprecated 3.3.0 No action is necessary on changes to download paths since download_id is no longer based on file hash. * @param int $product_id product identifier * @param int $variation_id optional product variation identifier * @param array $downloads newly set files */ public static function process_product_file_download_paths( $product_id, $variation_id, $downloads ) { - // No action is necessary on changes to download paths since download_id is no longer based on file hash. + wc_deprecated_function( __FUNCTION__, '3.3' ); } /**