Merge pull request #20436 from rnaby/070618-214347-wc-privacy-exporters-order_data_exporter
Made use unused variable and removed else
This commit is contained in:
commit
f70e8b4bd2
|
@ -53,7 +53,7 @@ class WC_Privacy_Exporters {
|
||||||
* @return array An array of personal data in name value pairs
|
* @return array An array of personal data in name value pairs
|
||||||
*/
|
*/
|
||||||
public static function order_data_exporter( $email_address, $page ) {
|
public static function order_data_exporter( $email_address, $page ) {
|
||||||
$done = false;
|
$done = true;
|
||||||
$page = (int) $page;
|
$page = (int) $page;
|
||||||
$user = get_user_by( 'email', $email_address ); // Check if user has an ID in the DB to load stored personal data.
|
$user = get_user_by( 'email', $email_address ); // Check if user has an ID in the DB to load stored personal data.
|
||||||
$data_to_export = array();
|
$data_to_export = array();
|
||||||
|
@ -79,8 +79,6 @@ class WC_Privacy_Exporters {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$done = 10 > count( $orders );
|
$done = 10 > count( $orders );
|
||||||
} else {
|
|
||||||
$done = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
|
|
Loading…
Reference in New Issue