Typos and unused variables
This commit is contained in:
parent
f59acf1350
commit
43f6a5114c
|
@ -173,7 +173,7 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'title' => __( 'Retain pending orders ', 'woocommerce' ),
|
'title' => __( 'Retain pending orders ', 'woocommerce' ),
|
||||||
'desc_tip' => __( 'Pending orders are unpaid and may have been abadonned by the customer. They will be trashed after the specified duration.', 'woocommerce' ),
|
'desc_tip' => __( 'Pending orders are unpaid and may have been abandoned by the customer. They will be trashed after the specified duration.', 'woocommerce' ),
|
||||||
'id' => 'woocommerce_trash_pending_orders',
|
'id' => 'woocommerce_trash_pending_orders',
|
||||||
'type' => 'relative_date_selector',
|
'type' => 'relative_date_selector',
|
||||||
'placeholder' => __( 'N/A', 'woocommerce' ),
|
'placeholder' => __( 'N/A', 'woocommerce' ),
|
||||||
|
@ -182,7 +182,7 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'title' => __( 'Retain failed orders', 'woocommerce' ),
|
'title' => __( 'Retain failed orders', 'woocommerce' ),
|
||||||
'desc_tip' => __( 'Failed orders are unpaid and may have been abadonned by the customer. They will be trashed after the specified duration.', 'woocommerce' ),
|
'desc_tip' => __( 'Failed orders are unpaid and may have been abandoned by the customer. They will be trashed after the specified duration.', 'woocommerce' ),
|
||||||
'id' => 'woocommerce_trash_failed_orders',
|
'id' => 'woocommerce_trash_failed_orders',
|
||||||
'type' => 'relative_date_selector',
|
'type' => 'relative_date_selector',
|
||||||
'placeholder' => __( 'N/A', 'woocommerce' ),
|
'placeholder' => __( 'N/A', 'woocommerce' ),
|
||||||
|
|
|
@ -154,7 +154,7 @@ class WC_Privacy_Erasers {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds and exports customer download logs by email address.
|
* Finds and removes customer download logs by email address.
|
||||||
*
|
*
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
* @param string $email_address The user email address.
|
* @param string $email_address The user email address.
|
||||||
|
@ -184,9 +184,7 @@ class WC_Privacy_Erasers {
|
||||||
$downloads_query['user_email'] = $email_address;
|
$downloads_query['user_email'] = $email_address;
|
||||||
}
|
}
|
||||||
|
|
||||||
$customer_download_data_store = WC_Data_Store::load( 'customer-download' );
|
$customer_download_data_store = WC_Data_Store::load( 'customer-download' );
|
||||||
$customer_download_log_data_store = WC_Data_Store::load( 'customer-download-log' );
|
|
||||||
$downloads = $customer_download_data_store->get_downloads( $downloads_query );
|
|
||||||
|
|
||||||
// Revoke download permissions.
|
// Revoke download permissions.
|
||||||
if ( apply_filters( 'woocommerce_privacy_erase_download_personal_data', $erasure_enabled, $email_address ) ) {
|
if ( apply_filters( 'woocommerce_privacy_erase_download_personal_data', $erasure_enabled, $email_address ) ) {
|
||||||
|
|
Loading…
Reference in New Issue