Make WordPress Core

Ticket #43873: privacy-top-menu.diff

File privacy-top-menu.diff, 2.1 KB (added by xkon, 6 years ago)
  • src/wp-admin/includes/user.php

     
    968968 * @access private
    969969 */
    970970function _wp_privacy_hook_requests_page() {
    971         add_submenu_page( 'tools.php', __( 'Export Personal Data' ), __( 'Export Personal Data' ), 'manage_options', 'export_personal_data', '_wp_personal_data_export_page' );
    972         add_submenu_page( 'tools.php', __( 'Remove Personal Data' ), __( 'Remove Personal Data' ), 'manage_options', 'remove_personal_data', '_wp_personal_data_removal_page' );
     971        add_submenu_page( 'privacy.php', __( 'Export Personal Data' ), __( 'Export Personal Data' ), 'manage_options', 'export_personal_data', '_wp_personal_data_export_page' );
     972        add_submenu_page( 'privacy.php', __( 'Remove Personal Data' ), __( 'Remove Personal Data' ), 'manage_options', 'remove_personal_data', '_wp_personal_data_removal_page' );
    973973}
    974974
    975975// TODO: move the following classes in new files.
  • src/wp-admin/menu.php

     
    252252        }
    253253}
    254254
     255$menu[73]                      = array( __( 'Privacy' ), 'manage_options', 'privacy.php', '', 'menu-top menu-icon-privacy', 'menu-privacy', 'dashicons-visibility' );
     256        $submenu['privacy.php'][5] = array( __( 'Privacy Notice Page' ), 'manage_options', 'privacy.php' );
     257
    255258$menu[75]                     = array( __( 'Tools' ), 'edit_posts', 'tools.php', '', 'menu-top menu-icon-tools', 'menu-tools', 'dashicons-admin-tools' );
    256259        $submenu['tools.php'][5]  = array( __( 'Available Tools' ), 'edit_posts', 'tools.php' );
    257260        $submenu['tools.php'][10] = array( __( 'Import' ), 'import', 'import.php' );
    258261        $submenu['tools.php'][15] = array( __( 'Export' ), 'export', 'export.php' );
    259         $submenu['tools.php'][20] = array( __( 'Privacy' ), 'manage_options', 'privacy.php' );
    260262if ( is_multisite() && ! is_main_site() ) {
    261263        $submenu['tools.php'][25] = array( __( 'Delete Site' ), 'delete_site', 'ms-delete-site.php' );
    262264}