Changeset 45148
- Timestamp:
- 04/09/2019 12:03:07 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r45112 r45148 2551 2551 wp_send_json_error( $mail_success->get_error_message() ); 2552 2552 } 2553 2554 // Update the request to completed state when the export email is sent. 2555 _wp_privacy_completed_request( $request_id ); 2553 2556 } else { 2554 2557 // Modify the response to include the URL of the export file so the browser can fetch it. … … 2559 2562 } 2560 2563 2561 // Update the request to completed state.2562 _wp_privacy_completed_request( $request_id );2563 2564 2564 return $response; 2565 2565 } -
trunk/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php
r44786 r45148 616 616 public function data_export_page_status_transitions() { 617 617 return array( 618 // Mark the request as completed for the last exporter on the last page, with and withoutemail.618 // Mark the request as completed for the last exporter on the last page, with email. 619 619 array( 620 620 'request-completed', … … 625 625 'last', 626 626 ), 627 array( 628 'request-completed', 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. 629 // Don't mark the request as completed when it's an admin download. 630 array( 631 'request-pending', 629 632 'last', 630 633 'last',
Note: See TracChangeset
for help on using the changeset viewer.