woothemes/woocommerce — pull request #3825 by ragulka (2013-09-24 08:15:38+00:00)
Title: Add $data array to woocommerce_downloadable_file_permission_format

It makes sense to provide downloadable file permission's `$data` to the `woocommerce_downloadable_file_permission_format` filter because the `$data` may have been filtered before by the `woocommerce_downloadable_file_permission_data` filter. And unless you have access to the `$data` array, there is no way to reliably provide the format.

For example, consider that the data is changed in the `woocommerce_downloadable_file_permission_data` filter based on the user_id and it requires changing the data format as well. How do you know that you are dealing with the same user's download permissions format, when you do not have access to the data?