wp/wp-admin/export-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( 'export_others_personal_data' ) ) {
    12 if ( ! current_user_can( 'export_others_personal_data' ) ) {
    13 	wp_die( __( 'Sorry, you are not allowed to export personal data on this site.' ) );
    13 	wp_die( __( 'Sorry, you are not allowed to export personal data on this site.' ) );
    14 }
    14 }
       
    15 
       
    16 // Used in the HTML title tag.
       
    17 $title = __( 'Export 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',
    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 Export Personal Data request should include data from plugins as well.' ) . '</p>' .
    57 					'<p>' . __( 'Many plugins may collect or store personal data either in the WordPress database or remotely. Any Export Personal Data request should include data from plugins as well.' ) . '</p>' .
    55 					'<p>' . __( 'Plugin authors can <a href="https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-exporter-to-your-plugin/" target="_blank">learn more about how to add the Personal Data Exporter 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-exporter-to-your-plugin/">how to add the Personal Data Exporter 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-export-personal-data-screen/">Documentation on Export Personal Data</a>' ) . '</p>' .
    65 	'<p>' . __( '<a href="https://wordpress.org/documentation/article/tools-export-personal-data-screen/">Documentation on Export 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