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:
Mike Jolley 2018-06-08 17:26:47 +01:00 committed by GitHub
commit f70e8b4bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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(