Ticket #43920: 43920.diff
File 43920.diff, 5.3 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/user.php
870 870 871 871 ?> 872 872 <div class="wrap nosubsub"> 873 <h1><?php esc_html_e( ' Remove Personal Data' ); ?></h1>873 <h1><?php esc_html_e( 'Erase Personal Data' ); ?></h1> 874 874 <hr class="wp-header-end" /> 875 875 876 876 <?php settings_errors(); ?> 877 877 878 878 <form method="post" class="wp-privacy-request-form"> 879 <h2><?php esc_html_e( 'Add Data RemovalRequest' ); ?></h2>879 <h2><?php esc_html_e( 'Add Data Erasure Request' ); ?></h2> 880 880 <p><?php esc_html_e( 'An email will be sent to the user at this email address asking them to verify the request.' ); ?></p> 881 881 882 882 <div class="wp-privacy-request-form-field"> … … 918 918 */ 919 919 function _wp_privacy_hook_requests_page() { 920 920 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' ); 922 922 } 923 923 924 924 // TODO: move the following classes in new files. … … 1009 1009 } 1010 1010 1011 1011 $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} 1014 1014 WHERE post_type = %s 1015 1015 AND post_name = %s 1016 1016 GROUP BY post_status"; … … 1455 1455 'data-nonce="' . esc_attr( $nonce ) . 1456 1456 '">'; 1457 1457 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>'; 1461 1461 1462 1462 $remove_data_markup .= '</div>'; 1463 1463 … … 1497 1497 '">'; 1498 1498 1499 1499 ?> 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> 1503 1503 <?php 1504 1504 1505 1505 echo '</div>'; -
src/wp-includes/script-loader.php
712 712 did_action( 'init' ) && $scripts->localize( 713 713 'xfn', 'privacyToolsL10n', array( 714 714 '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.' ), 719 719 'noExportFile' => __( 'No personal data export file was generated.' ), 720 720 'exportError' => __( 'An error occurred while attempting to export personal data.' ), 721 721 ) -
src/wp-includes/user.php
3038 3038 $description = __( 'Export Personal Data' ); 3039 3039 break; 3040 3040 case 'remove_personal_data': 3041 $description = __( ' Remove Personal Data' );3041 $description = __( 'Erase Personal Data' ); 3042 3042 break; 3043 3043 default: 3044 3044 /* translators: %s: action name */