WordPress.org

Make WordPress Core

Changeset 46412


Ignore:
Timestamp:
10/06/2019 06:54:13 AM (2 months ago)
Author:
whyisjake
Message:

Privacy: Ensure that sending email, and remove data follow the same user experience.

Both personal data request processes should follow the same convention.

Fixes: #43974.
Props: garrett-eclipse, kjellr, Kerfred, birgire, marybaum, SergeyBiryukov.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/privacy-tools.js

    r46264 r46412  
    7272
    7373        function onExportDoneSuccess( zipUrl ) {
     74            var summaryMessage = strings.emailSent;
     75
    7476            setActionState( $action, 'export-personal-data-success' );
     77
     78            appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, [] );
     79            $this.hide();
     80           
    7581            if ( 'undefined' !== typeof zipUrl ) {
    7682                window.location = zipUrl;
     
    169175                }
    170176            }
    171             appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, messages );
     177            appendResultsAfterRow( $requestRow, classes, summaryMessage, messages );
     178            $this.hide();
    172179        }
    173180
  • trunk/src/wp-includes/script-loader.php

    r46379 r46412  
    18021802                'someNotRemoved'  => __( 'Personal data was found for this user but some of the personal data found was not erased.' ),
    18031803                'removalError'    => __( 'An error occurred while attempting to find and erase personal data.' ),
     1804                'emailSent'       => __( 'The personal data export link for this user was sent.' ),
    18041805                'noExportFile'    => __( 'No personal data export file was generated.' ),
    18051806                'exportError'     => __( 'An error occurred while attempting to export personal data.' ),
Note: See TracChangeset for help on using the changeset viewer.