[#12517] Remove calls to action woocommerce_process_product_file_download_paths since download ids should no longer change. They are now static UUIDs.

This commit is contained in:
Josh Smith 2017-08-23 03:22:33 +00:00
parent df64c48103
commit 39544cb27b
1 changed files with 0 additions and 6 deletions

View File

@ -715,12 +715,6 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
}
}
if ( $product->is_type( 'variation' ) ) {
do_action( 'woocommerce_process_product_file_download_paths', $product->get_parent_id(), $product->get_id(), $downloads );
} else {
do_action( 'woocommerce_process_product_file_download_paths', $product->get_id(), 0, $downloads );
}
return update_post_meta( $product->get_id(), '_downloadable_files', $meta_values );
}
return false;