Privacy: Move privacy policy page to `Settings` menu for consistency.
The page was originally placed under `Tools` so that it would be grouped with the pages to export and erase personal data, since they're all part of the effort to bring privacy management tools to Core ahead of GDPR's deadline. After more consideration, though, it makes sense to move this page to the `Settings` menu, since it's fundamental purpose is to configure an option, rather than to facilitate a recurring task. This keeps all of the configuration pages in a single place, making them consistent and easier to find. Exporting and erasing personal data are recurring tasks, so they still make sense under the `Tools` menu. Props xkon, helen, melchoyce, allendav, desrosj, ocean90, azaozz. Fixes #43873. Built from https://develop.svn.wordpress.org/trunk@43145 git-svn-id: http://core.svn.wordpress.org/trunk@42974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
21e770973c
commit
cd3ea58832
|
@ -256,7 +256,6 @@ $menu[75] = array( __( 'Tools' ), 'edit_posts', 'tools.php',
|
|||
$submenu['tools.php'][5] = array( __( 'Available Tools' ), 'edit_posts', 'tools.php' );
|
||||
$submenu['tools.php'][10] = array( __( 'Import' ), 'import', 'import.php' );
|
||||
$submenu['tools.php'][15] = array( __( 'Export' ), 'export', 'export.php' );
|
||||
$submenu['tools.php'][20] = array( __( 'Privacy' ), 'manage_options', 'privacy.php' );
|
||||
if ( is_multisite() && ! is_main_site() ) {
|
||||
$submenu['tools.php'][25] = array( __( 'Delete Site' ), 'delete_site', 'ms-delete-site.php' );
|
||||
}
|
||||
|
@ -271,6 +270,7 @@ $menu[80] = array( __( 'Settings' ), 'manage_optio
|
|||
$submenu['options-general.php'][25] = array( __( 'Discussion' ), 'manage_options', 'options-discussion.php' );
|
||||
$submenu['options-general.php'][30] = array( __( 'Media' ), 'manage_options', 'options-media.php' );
|
||||
$submenu['options-general.php'][40] = array( __( 'Permalinks' ), 'manage_options', 'options-permalink.php' );
|
||||
$submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_options', 'privacy.php' );
|
||||
|
||||
$_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Privacy Tools Screen.
|
||||
* Privacy Settings Screen.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Administration
|
||||
|
@ -111,7 +111,7 @@ if ( ! empty( $privacy_policy_page_id ) ) {
|
|||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'privacy',
|
||||
'title' => __( 'Privacy' ),
|
||||
'content' => '<p>' . __( 'This page provides tools with which you can manage your user’s personal data and site’s privacy policy.' ) . '</p>',
|
||||
'content' => '<p>' . __( 'This page provides settings with which you can manage your site’s privacy policy.' ) . '</p>',
|
||||
) );
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
|
@ -123,8 +123,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
|||
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1><?php _e( 'Privacy Tools' ); ?></h1>
|
||||
<?php settings_errors(); ?>
|
||||
<h1><?php _e( 'Privacy Settings' ); ?></h1>
|
||||
<h2><?php _e( 'Privacy Policy page' ); ?></h2>
|
||||
<p>
|
||||
<?php _e( 'As a website owner, you may need to follow national or international privacy laws. For example, you may need to create and display a privacy policy.' ); ?>
|
||||
|
@ -205,7 +204,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
|||
</span>
|
||||
<?php
|
||||
wp_nonce_field( 'create-privacy-page' );
|
||||
|
||||
|
||||
submit_button( __( 'Create New Page' ), 'primary', 'submit', false, array( 'id' => 'create-page' ) );
|
||||
?>
|
||||
</form>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-43144';
|
||||
$wp_version = '5.0-alpha-43145';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue