Make WordPress Core

Changeset 43152


Ignore:
Timestamp:
05/03/2018 06:31:59 PM (7 years ago)
Author:
azaozz
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.
Merges [43145] to the 4.9 branch.
Fixes #43873.

Location:
branches/4.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/menu.php

    r43098 r43152  
    245245    $submenu['tools.php'][10] = array( __('Import'), 'import', 'import.php' );
    246246    $submenu['tools.php'][15] = array( __('Export'), 'export', 'export.php' );
    247     $submenu['tools.php'][20] = array( __( 'Privacy' ), 'manage_options', 'privacy.php' );
    248247    if ( is_multisite() && !is_main_site() )
    249248        $submenu['tools.php'][25] = array( __('Delete Site'), 'delete_site', 'ms-delete-site.php' );
     
    258257    $submenu['options-general.php'][30] = array(__('Media'), 'manage_options', 'options-media.php');
    259258    $submenu['options-general.php'][40] = array(__('Permalinks'), 'manage_options', 'options-permalink.php');
     259    $submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_options', 'privacy.php' );
    260260
    261261$_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group
  • branches/4.9/src/wp-admin/privacy.php

    r43149 r43152  
    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.