Make WordPress Core


Ignore:
Timestamp:
04/09/2019 12:03:07 AM (6 years ago)
Author:
pento
Message:

Privacy: Only mark a personal data export as complete when the user downloads it.

An admin may download an export to check that it's all correct, but this action shouldn't mark the request as complete.

Props garrett-eclipse, JoshuaWold, birgire.
Fixes #44644.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php

    r44786 r45148  
    616616    public function data_export_page_status_transitions() {
    617617        return array(
    618             // Mark the request as completed for the last exporter on the last page, with and without email.
     618            // Mark the request as completed for the last exporter on the last page, with email.
    619619            array(
    620620                'request-completed',
     
    625625                'last',
    626626            ),
    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',
    629632                'last',
    630633                'last',
Note: See TracChangeset for help on using the changeset viewer.