wp/wp-admin/erase-personal-data.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    10 require_once __DIR__ . '/admin.php';
    10 require_once __DIR__ . '/admin.php';
    11 
    11 
    12 if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) {
    12 if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) {
    13 	wp_die( __( 'Sorry, you are not allowed to erase personal data on this site.' ) );
    13 	wp_die( __( 'Sorry, you are not allowed to erase personal data on this site.' ) );
    14 }
    14 }
       
    15 
       
    16 // Used in the HTML title tag.
       
    17 $title = __( 'Erase Personal Data' );
    15 
    18 
    16 // Contextual help - choose Help on the top right of admin panel to preview this.
    19 // Contextual help - choose Help on the top right of admin panel to preview this.
    17 get_current_screen()->add_help_tab(
    20 get_current_screen()->add_help_tab(
    18 	array(
    21 	array(
    19 		'id'      => 'overview',
    22 		'id'      => 'overview',
    29 get_current_screen()->add_help_tab(
    32 get_current_screen()->add_help_tab(
    30 	array(
    33 	array(
    31 		'id'      => 'default-data',
    34 		'id'      => 'default-data',
    32 		'title'   => __( 'Default Data' ),
    35 		'title'   => __( 'Default Data' ),
    33 		'content' =>
    36 		'content' =>
    34 					'<p>' . __( 'WordPress collects (but <em>never</em> publishes) a limited amount of data from logged-in users but then deletes it or anonymizes it. That data can include: ' ) . '</p>' .
    37 					'<p>' . __( 'WordPress collects (but <em>never</em> publishes) a limited amount of data from logged-in users but then deletes it or anonymizes it. That data can include:' ) . '</p>' .
    35 					'<p>' . __( '<strong>Profile Information</strong> &mdash; user email address, username, display name, nickname, first name, last name, description/bio, and registration date.' ) . '</p>' .
    38 					'<p>' . __( '<strong>Profile Information</strong> &mdash; user email address, username, display name, nickname, first name, last name, description/bio, and registration date.' ) . '</p>' .
    36 					'<p>' . __( '<strong>Community Events Location</strong> &mdash; The IP Address of the user which is used for the Upcoming Community Events shown in the dashboard widget.' ) . '</p>' .
    39 					'<p>' . __( '<strong>Community Events Location</strong> &mdash; The IP Address of the user which is used for the Upcoming Community Events shown in the dashboard widget.' ) . '</p>' .
    37 					'<p>' . __( '<strong>Session Tokens</strong> &mdash; User login information, IP Addresses, Expiration Date, User Agent (Browser/OS), and Last Login.' ) . '</p>' .
    40 					'<p>' . __( '<strong>Session Tokens</strong> &mdash; User login information, IP Addresses, Expiration Date, User Agent (Browser/OS), and Last Login.' ) . '</p>' .
    38 					'<p>' . __( '<strong>Comments</strong> &mdash; WordPress does not delete comments. The software does anonymize (but, again, <em>never</em> publishes) the associated Email Address, IP Address, and User Agent (Browser/OS).' ) . '</p>' .
    41 					'<p>' . __( '<strong>Comments</strong> &mdash; WordPress does not delete comments. The software does anonymize (but, again, <em>never</em> publishes) the associated Email Address, IP Address, and User Agent (Browser/OS).' ) . '</p>' .
    39 					'<p>' . __( '<strong>Media</strong> &mdash; A list of URLs for all media file uploads made by the user.' ) . '</p>',
    42 					'<p>' . __( '<strong>Media</strong> &mdash; A list of URLs for all media file uploads made by the user.' ) . '</p>',
    50 	array(
    53 	array(
    51 		'id'      => 'plugin-data',
    54 		'id'      => 'plugin-data',
    52 		'title'   => __( 'Plugin Data' ),
    55 		'title'   => __( 'Plugin Data' ),
    53 		'content' =>
    56 		'content' =>
    54 					'<p>' . __( 'Many plugins may collect or store personal data either in the WordPress database or remotely. Any Erase Personal Data request should delete data from plugins as well.' ) . '</p>' .
    57 					'<p>' . __( 'Many plugins may collect or store personal data either in the WordPress database or remotely. Any Erase Personal Data request should delete data from plugins as well.' ) . '</p>' .
    55 					'<p>' . __( 'If you are a plugin author, you can <a href="https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-eraser-to-your-plugin/" target="_blank">learn more about how to add support for the Personal Data Eraser to a plugin here</a>.' ) . '</p>' .
    58 					$privacy_policy_guide .
    56 					$privacy_policy_guide,
    59 					'<p>' . __( 'If you are a plugin author, you can learn more about <a href="https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-eraser-to-your-plugin/">how to add the Personal Data Eraser to a plugin</a>.' ) . '</p>',
    57 	)
    60 	)
    58 );
    61 );
    59 
    62 
    60 get_current_screen()->set_help_sidebar(
    63 get_current_screen()->set_help_sidebar(
    61 	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    64 	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    62 	'<p>' . __( '<a href="https://wordpress.org/support/article/tools-erase-personal-data-screen/">Documentation on Erase Personal Data</a>' ) . '</p>' .
    65 	'<p>' . __( '<a href="https://wordpress.org/documentation/article/tools-erase-personal-data-screen/">Documentation on Erase Personal Data</a>' ) . '</p>' .
    63 	'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    66 	'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
    64 );
    67 );
    65 
    68 
    66 // Handle list table actions.
    69 // Handle list table actions.
    67 _wp_personal_data_handle_actions();
    70 _wp_personal_data_handle_actions();
    68 
    71