Make WordPress Core

Ticket #43920: 43920.diff

File 43920.diff, 5.3 KB (added by allendav, 7 years ago)

Change remove and its variants to erase in admin facing strings

  • src/wp-admin/includes/user.php

     
    870870
    871871        ?>
    872872        <div class="wrap nosubsub">
    873                 <h1><?php esc_html_e( 'Remove Personal Data' ); ?></h1>
     873                <h1><?php esc_html_e( 'Erase Personal Data' ); ?></h1>
    874874                <hr class="wp-header-end" />
    875875
    876876                <?php settings_errors(); ?>
    877877
    878878                <form method="post" class="wp-privacy-request-form">
    879                         <h2><?php esc_html_e( 'Add Data Removal Request' ); ?></h2>
     879                        <h2><?php esc_html_e( 'Add Data Erasure Request' ); ?></h2>
    880880                        <p><?php esc_html_e( 'An email will be sent to the user at this email address asking them to verify the request.' ); ?></p>
    881881
    882882                        <div class="wp-privacy-request-form-field">
     
    918918 */
    919919function _wp_privacy_hook_requests_page() {
    920920        add_submenu_page( 'tools.php', __( 'Export Personal Data' ), __( 'Export Personal Data' ), 'manage_options', 'export_personal_data', '_wp_personal_data_export_page' );
    921         add_submenu_page( 'tools.php', __( 'Remove Personal Data' ), __( 'Remove Personal Data' ), 'manage_options', 'remove_personal_data', '_wp_personal_data_removal_page' );
     921        add_submenu_page( 'tools.php', __( 'Erase Personal Data' ), __( 'Erase Personal Data' ), 'manage_options', 'remove_personal_data', '_wp_personal_data_removal_page' );
    922922}
    923923
    924924// TODO: move the following classes in new files.
     
    10091009                }
    10101010
    10111011                $query = "
    1012                         SELECT post_status, COUNT( * ) AS num_posts 
    1013                         FROM {$wpdb->posts} 
     1012                        SELECT post_status, COUNT( * ) AS num_posts
     1013                        FROM {$wpdb->posts}
    10141014                        WHERE post_type = %s
    10151015                        AND post_name = %s
    10161016                        GROUP BY post_status";
     
    14551455                                'data-nonce="' . esc_attr( $nonce ) .
    14561456                                '">';
    14571457
    1458                         $remove_data_markup .= '<span class="remove_personal_data_idle"><a href="#" >' . __( 'Force Remove Personal Data' ) . '</a></span>' .
    1459                                 '<span style="display:none" class="remove_personal_data_processing" >' . __( 'Removing Data...' ) . '</span>' .
    1460                                 '<span style="display:none" class="remove_personal_data_failed">' . __( 'Force Remove Failed!' ) . ' <a href="#" >' . __( 'Retry' ) . '</a></span>';
     1458                        $remove_data_markup .= '<span class="remove_personal_data_idle"><a href="#" >' . __( 'Force Erase Personal Data' ) . '</a></span>' .
     1459                                '<span style="display:none" class="remove_personal_data_processing" >' . __( 'Erasing Data...' ) . '</span>' .
     1460                                '<span style="display:none" class="remove_personal_data_failed">' . __( 'Force Erase Failed!' ) . ' <a href="#" >' . __( 'Retry' ) . '</a></span>';
    14611461
    14621462                        $remove_data_markup .= '</div>';
    14631463
     
    14971497                                        '">';
    14981498
    14991499                                ?>
    1500                                 <span class="remove_personal_data_idle"><a class="button" href="#" ><?php _e( 'Remove Personal Data' ); ?></a></span>
    1501                                 <span style="display:none" class="remove_personal_data_processing button updating-message" ><?php _e( 'Removing Data...' ); ?></span>
    1502                                 <span style="display:none" class="remove_personal_data_failed"><?php _e( 'Removing Data Failed!' ); ?> <a class="button" href="#" ><?php _e( 'Retry' ); ?></a></span>
     1500                                <span class="remove_personal_data_idle"><a class="button" href="#" ><?php _e( 'Erase Personal Data' ); ?></a></span>
     1501                                <span style="display:none" class="remove_personal_data_processing button updating-message" ><?php _e( 'Erasing Data...' ); ?></span>
     1502                                <span style="display:none" class="remove_personal_data_failed"><?php _e( 'Erasing Data Failed!' ); ?> <a class="button" href="#" ><?php _e( 'Retry' ); ?></a></span>
    15031503                                <?php
    15041504
    15051505                                echo '</div>';
  • src/wp-includes/script-loader.php

     
    712712                did_action( 'init' ) && $scripts->localize(
    713713                        'xfn', 'privacyToolsL10n', array(
    714714                                'noDataFound'     => __( 'No personal data was found for this user.' ),
    715                                 'foundAndRemoved' => __( 'All of the personal data found for this user was removed.' ),
    716                                 'noneRemoved'     => __( 'Personal data was found for this user but was not removed.' ),
    717                                 'someNotRemoved'  => __( 'Personal data was found for this user but some of the personal data found was not removed.' ),
    718                                 'removalError'    => __( 'An error occurred while attempting to find and remove personal data.' ),
     715                                'foundAndRemoved' => __( 'All of the personal data found for this user was erased.' ),
     716                                'noneRemoved'     => __( 'Personal data was found for this user but was not erased.' ),
     717                                'someNotRemoved'  => __( 'Personal data was found for this user but some of the personal data found was not erased.' ),
     718                                'removalError'    => __( 'An error occurred while attempting to find and erase personal data.' ),
    719719                                'noExportFile'    => __( 'No personal data export file was generated.' ),
    720720                                'exportError'     => __( 'An error occurred while attempting to export personal data.' ),
    721721                        )
  • src/wp-includes/user.php

     
    30383038                        $description = __( 'Export Personal Data' );
    30393039                        break;
    30403040                case 'remove_personal_data':
    3041                         $description = __( 'Remove Personal Data' );
     3041                        $description = __( 'Erase Personal Data' );
    30423042                        break;
    30433043                default:
    30443044                        /* translators: %s: action name */