diff --git a/includes/class-wc-privacy-exporters.php b/includes/class-wc-privacy-exporters.php index 608c7512539..8cd8903ae18 100644 --- a/includes/class-wc-privacy-exporters.php +++ b/includes/class-wc-privacy-exporters.php @@ -53,7 +53,7 @@ class WC_Privacy_Exporters { * @return array An array of personal data in name value pairs */ public static function order_data_exporter( $email_address, $page ) { - $done = false; + $done = true; $page = (int) $page; $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(); @@ -79,8 +79,6 @@ class WC_Privacy_Exporters { ); } $done = 10 > count( $orders ); - } else { - $done = true; } return array(