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. Merges [43145] to the 4.9 branch. Fixes #43873. Built from https://develop.svn.wordpress.org/branches/4.9@43152 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2b0b7ffa89
commit
1dfbe95995
|
@ -244,7 +244,6 @@ $menu[75] = array( __('Tools'), 'edit_posts', 'tools.php', '', 'menu-top menu-ic
|
||||||
$submenu['tools.php'][5] = array( __('Available 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'][10] = array( __('Import'), 'import', 'import.php' );
|
||||||
$submenu['tools.php'][15] = array( __('Export'), 'export', 'export.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() )
|
if ( is_multisite() && !is_main_site() )
|
||||||
$submenu['tools.php'][25] = array( __('Delete Site'), 'delete_site', 'ms-delete-site.php' );
|
$submenu['tools.php'][25] = array( __('Delete Site'), 'delete_site', 'ms-delete-site.php' );
|
||||||
if ( ! is_multisite() && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE )
|
if ( ! is_multisite() && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE )
|
||||||
|
@ -257,6 +256,7 @@ $menu[80] = array( __('Settings'), 'manage_options', 'options-general.php', '',
|
||||||
$submenu['options-general.php'][25] = array(__('Discussion'), 'manage_options', 'options-discussion.php');
|
$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'][30] = array(__('Media'), 'manage_options', 'options-media.php');
|
||||||
$submenu['options-general.php'][40] = array(__('Permalinks'), 'manage_options', 'options-permalink.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
|
$_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Privacy Tools Screen.
|
* Privacy Settings Screen.
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
|
@ -111,7 +111,7 @@ if ( ! empty( $privacy_policy_page_id ) ) {
|
||||||
get_current_screen()->add_help_tab( array(
|
get_current_screen()->add_help_tab( array(
|
||||||
'id' => 'privacy',
|
'id' => 'privacy',
|
||||||
'title' => __( '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(
|
get_current_screen()->set_help_sidebar(
|
||||||
|
@ -123,8 +123,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h1><?php _e( 'Privacy Tools' ); ?></h1>
|
<h1><?php _e( 'Privacy Settings' ); ?></h1>
|
||||||
<?php settings_errors(); ?>
|
|
||||||
<h2><?php _e( 'Privacy Policy page' ); ?></h2>
|
<h2><?php _e( 'Privacy Policy page' ); ?></h2>
|
||||||
<p>
|
<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.' ); ?>
|
<?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>
|
</span>
|
||||||
<?php
|
<?php
|
||||||
wp_nonce_field( 'create-privacy-page' );
|
wp_nonce_field( 'create-privacy-page' );
|
||||||
|
|
||||||
submit_button( __( 'Create New Page' ), 'primary', 'submit', false, array( 'id' => 'create-page' ) );
|
submit_button( __( 'Create New Page' ), 'primary', 'submit', false, array( 'id' => 'create-page' ) );
|
||||||
?>
|
?>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9.6-alpha-43151';
|
$wp_version = '4.9.6-alpha-43152';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue