Make WordPress Core

Ticket #43974: 43974.5.diff

File 43974.5.diff, 1.7 KB (added by garrett-eclipse, 5 years ago)

Restore Email Sent message

  • src/js/_enqueues/admin/privacy-tools.js

     
    7171                clearResultsAfterRow( $requestRow );
    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;
    7783                        } else if ( ! sendAsEmail ) {
     
    168174                                        classes = 'notice-warning';
    169175                                }
    170176                        }
    171                         appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, messages );
     177                        appendResultsAfterRow( $requestRow, classes, summaryMessage, messages );
     178                        $this.hide();
    172179                }
    173180
    174181                function onErasureFailure() {
  • src/wp-includes/script-loader.php

     
    18011801                                'noneRemoved'     => __( 'Personal data was found for this user but was not erased.' ),
    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.' ),
    18061807                        )