Adds support for group_description for privacy exporters which was added in WP5.3 through WPCoreChangeset#45825 and WPCoreTracTicket#45491
This commit is contained in:
parent
6eb74eef8a
commit
6295534fbb
|
@ -29,6 +29,7 @@ class WC_Privacy_Exporters {
|
|||
$data_to_export[] = array(
|
||||
'group_id' => 'woocommerce_customer',
|
||||
'group_label' => __( 'Customer Data', 'woocommerce' ),
|
||||
'group_description' => __( 'User’s WooCommerce customer data.', 'woocommerce' ),
|
||||
'item_id' => 'user',
|
||||
'data' => $customer_personal_data,
|
||||
);
|
||||
|
@ -73,6 +74,7 @@ class WC_Privacy_Exporters {
|
|||
$data_to_export[] = array(
|
||||
'group_id' => 'woocommerce_orders',
|
||||
'group_label' => __( 'Orders', 'woocommerce' ),
|
||||
'group_description' => __( 'User’s WooCommerce orders data.', 'woocommerce' ),
|
||||
'item_id' => 'order-' . $order->get_id(),
|
||||
'data' => self::get_order_personal_data( $order ),
|
||||
);
|
||||
|
@ -121,6 +123,7 @@ class WC_Privacy_Exporters {
|
|||
'group_id' => 'woocommerce_downloads',
|
||||
/* translators: This is the headline for a list of downloads purchased from the store for a given user. */
|
||||
'group_label' => __( 'Purchased Downloads', 'woocommerce' ),
|
||||
'group_description' => __( 'User’s WooCommerce purchased downloads data.', 'woocommerce' ),
|
||||
'item_id' => 'download-' . $download->get_id(),
|
||||
'data' => self::get_download_personal_data( $download ),
|
||||
);
|
||||
|
@ -132,6 +135,7 @@ class WC_Privacy_Exporters {
|
|||
'group_id' => 'woocommerce_download_logs',
|
||||
/* translators: This is the headline for a list of access logs for downloads purchased from the store for a given user. */
|
||||
'group_label' => __( 'Access to Purchased Downloads', 'woocommerce' ),
|
||||
'group_description' => __( 'User’s WooCommerce access to purchased downloads data.', 'woocommerce' ),
|
||||
'item_id' => 'download-log-' . $download_log->get_id(),
|
||||
'data' => array(
|
||||
array(
|
||||
|
@ -415,6 +419,7 @@ class WC_Privacy_Exporters {
|
|||
$data_to_export[] = array(
|
||||
'group_id' => 'woocommerce_tokens',
|
||||
'group_label' => __( 'Payment Tokens', 'woocommerce' ),
|
||||
'group_description' => __( 'User’s WooCommerce payment tokens data.', 'woocommerce' ),
|
||||
'item_id' => 'token-' . $token->get_id(),
|
||||
'data' => array(
|
||||
array(
|
||||
|
|
|
@ -73,6 +73,7 @@ class WC_Test_Privacy_Export extends WC_Unit_Test_Case {
|
|||
array(
|
||||
'group_id' => 'woocommerce_customer',
|
||||
'group_label' => 'Customer Data',
|
||||
'group_description' => 'User’s WooCommerce customer data.',
|
||||
'item_id' => 'user',
|
||||
'data' => array(
|
||||
array(
|
||||
|
|
Loading…
Reference in New Issue