Ticket #44644: 44644.diff
File 44644.diff, 1.5 KB (added by , 6 years ago) |
---|
-
src/wp-admin/includes/file.php
2526 2526 if ( is_wp_error( $mail_success ) ) { 2527 2527 wp_send_json_error( $mail_success->get_error_message() ); 2528 2528 } 2529 2530 // Update the request to completed state when the export email is sent. 2531 _wp_privacy_completed_request( $request_id ); 2529 2532 } else { 2530 2533 // Modify the response to include the URL of the export file so the browser can fetch it. 2531 2534 $export_file_url = get_post_meta( $request_id, '_export_file_url', true ); … … 2534 2537 } 2535 2538 } 2536 2539 2537 // Update the request to completed state.2538 _wp_privacy_completed_request( $request_id );2539 2540 2540 return $response; 2541 2541 } -
tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php
624 624 true, 625 625 'last', 626 626 ), 627 // Leave the request as pending for the last exporter on the last page, without email. 628 // This check was updated to account for admin vs user export; we don't want to mark the request as completed without the email as that indicate it's an admin download. 627 629 array( 628 'request- completed',630 'request-pending', 629 631 'last', 630 632 'last', 631 633 'last',