WordPress.org

Making WordPress.org

Changeset 9043


Ignore:
Timestamp:
07/15/2019 04:21:28 AM (6 months ago)
Author:
dd32
Message:

Rosetta: Privacy -> Cookies: Don't link to non-existant data erasure/export pages in the page hierarchy header, these are only accessible on WordPress.org/

Removing these links from the Cookies page seems like the simplest option here, as this is the only page which had links to these pages in the navigation menu.
All of the expected links to the Export/Erasure pages are properly linking to the wordpress.org/ variant.

See #4599.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-cookies.php

    r9040 r9043  
    1616    'about/privacy/data-erasure-request' => esc_html_x( 'Data Erasure Request', 'Page title', 'wporg' ),
    1717];
     18
     19// The Data Export and Data Erasure forms/pages don't currently exist on rosetta sites, and should not be linked here.
     20if ( isset( $GLOBALS['rosetta'] ) ) {
     21    unset( $GLOBALS['menu_items']['about/privacy/data-export-request'], $GLOBALS['menu_items']['about/privacy/data-erasure-request'] );
     22}
     23
    1824
    1925// Prevent Jetpack from looking for a non-existent featured image.
Note: See TracChangeset for help on using the changeset viewer.