WordPress.org

Make WordPress Core

Changeset 43145


Ignore:
Timestamp:
05/03/2018 04:40:31 PM (22 months ago)
Author:
iandunn
Message:

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.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu.php

    r42814 r43145  
    257257    $submenu['tools.php'][10] = array( __( 'Import' ), 'import', 'import.php' );
    258258    $submenu['tools.php'][15] = array( __( 'Export' ), 'export', 'export.php' );
    259     $submenu['tools.php'][20] = array( __( 'Privacy' ), 'manage_options', 'privacy.php' );
    260259if ( is_multisite() && ! is_main_site() ) {
    261260    $submenu['tools.php'][25] = array( __( 'Delete Site' ), 'delete_site', 'ms-delete-site.php' );
     
    272271    $submenu['options-general.php'][30] = array( __( 'Media' ), 'manage_options', 'options-media.php' );
    273272    $submenu['options-general.php'][40] = array( __( 'Permalinks' ), 'manage_options', 'options-permalink.php' );
     273    $submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_options', 'privacy.php' );
    274274
    275275$_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group
  • trunk/src/wp-admin/privacy.php

    r43132 r43145  
    11<?php
    22/**
    3  * Privacy Tools Screen.
     3 * Privacy Settings Screen.
    44 *
    55 * @package WordPress
     
    112112    'id'      => 'privacy',
    113113    'title'   => __( 'Privacy' ),
    114     'content' => '<p>' . __( 'This page provides tools with which you can manage your user&#8217;s personal data and site&#8217;s privacy policy.' ) . '</p>',
     114    'content' => '<p>' . __( 'This page provides settings with which you can manage your site&#8217;s privacy policy.' ) . '</p>',
    115115) );
    116116
     
    124124?>
    125125<div class="wrap">
    126     <h1><?php _e( 'Privacy Tools' ); ?></h1>
    127     <?php settings_errors(); ?>
     126    <h1><?php _e( 'Privacy Settings' ); ?></h1>
    128127    <h2><?php _e( 'Privacy Policy page' ); ?></h2>
    129128    <p>
     
    206205                    <?php
    207206                    wp_nonce_field( 'create-privacy-page' );
    208    
     207
    209208                    submit_button( __( 'Create New Page' ), 'primary', 'submit', false, array( 'id' => 'create-page' ) );
    210209                    ?>
Note: See TracChangeset for help on using the changeset viewer.