WordPress.org

Make WordPress Core

Changeset 46264


Ignore:
Timestamp:
09/23/2019 07:12:04 PM (4 weeks ago)
Author:
SergeyBiryukov
Message:

Privacy: Show a success message for personal data erasure.

Props garrett-eclipse, allendav, birgire, JoshuaWold, karmatosed, pputzer.
Fixes #44135.

Location:
trunk/src
Files:
3 edited

Legend:

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

    r45490 r46264  
    152152            var classes = 'notice-success';
    153153
    154             setActionState( $action, 'remove-personal-data-idle' );
     154            setActionState( $action, 'remove-personal-data-success' );
    155155
    156156            if ( false === hasRemoved ) {
  • trunk/src/wp-admin/css/forms.css

    r46256 r46264  
    11571157}
    11581158
     1159.privacy_requests .row-actions {
     1160    color: #72777c;
     1161}
     1162
    11591163.privacy_requests tbody .has-request-results th {
    11601164    box-shadow: none;
  • trunk/src/wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php

    r45500 r46264  
    6464            $remove_data_markup .= '<span class="remove-personal-data-idle"><button type="button" class="button-link remove-personal-data-handle">' . __( 'Force Erase Personal Data' ) . '</button></span>' .
    6565                '<span class="remove-personal-data-processing hidden">' . __( 'Erasing Data...' ) . '</span>' .
    66                 '<span class="remove-personal-data-failed hidden">' . __( 'Force Erase has failed.' ) . ' <button type="button" class="button-link remove-personal-data-handle">' . __( 'Retry' ) . '</button></span>';
     66                '<span class="remove-personal-data-success hidden">' . __( 'Erasure completed.' ) . '</span>' .
     67                '<span class="remove-personal-data-failed hidden">' . __( 'Force Erasure has failed.' ) . ' <button type="button" class="button-link remove-personal-data-handle">' . __( 'Retry' ) . '</button></span>';
    6768
    6869            $remove_data_markup .= '</div>';
     
    107108                <span class="remove-personal-data-idle"><button type="button" class="button remove-personal-data-handle"><?php _e( 'Erase Personal Data' ); ?></button></span>
    108109                <span class="remove-personal-data-processing button updating-message hidden"><?php _e( 'Erasing Data...' ); ?></span>
    109                 <span class="remove-personal-data-failed hidden"><?php _e( 'Erasing Data has failed.' ); ?> <button type="button" class="button remove-personal-data-handle"><?php _e( 'Retry' ); ?></button></span>
     110                <span class="remove-personal-data-success success-message hidden" ><?php _e( 'Erasure completed.' ); ?></span>
     111                <span class="remove-personal-data-failed hidden"><?php _e( 'Data Erasure has failed.' ); ?> <button type="button" class="button remove-personal-data-handle"><?php _e( 'Retry' ); ?></button></span>
    110112                <?php
    111113
Note: See TracChangeset for help on using the changeset viewer.