Making WordPress.org

Ticket #4527: 4527.diff

File 4527.diff, 2.5 KB (added by garrett-eclipse, 5 years ago)

Patch to add the Cookie Policy link to the privacy menu items

  • wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-cookies.php

     
    1111
    1212$GLOBALS['menu_items'] = [
    1313        'about/privacy'                      => esc_html_x( 'Privacy Policy', 'Page title', 'wporg' ),
     14        'about/privacy/cookies'              => esc_html_x( 'Cookie Policy', 'Page title', 'wporg' ),
    1415        'about/privacy/data-export-request'  => esc_html_x( 'Data Export Request', 'Page title', 'wporg' ),
    1516        'about/privacy/data-erasure-request' => esc_html_x( 'Data Erasure Request', 'Page title', 'wporg' ),
    1617];
  • wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-data-erasure-request.php

     
    1111
    1212$GLOBALS['menu_items'] = [
    1313        'about/privacy'                      => esc_html_x( 'Privacy Policy', 'Page title', 'wporg' ),
     14        'about/privacy/cookies'              => esc_html_x( 'Cookie Policy', 'Page title', 'wporg' ),
    1415        'about/privacy/data-export-request'  => esc_html_x( 'Data Export Request', 'Page title', 'wporg' ),
    1516        'about/privacy/data-erasure-request' => esc_html_x( 'Data Erasure Request', 'Page title', 'wporg' ),
    1617];
  • wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-data-export-request.php

     
    1111
    1212$GLOBALS['menu_items'] = [
    1313        'about/privacy'                      => esc_html_x( 'Privacy Policy', 'Page title', 'wporg' ),
     14        'about/privacy/cookies'              => esc_html_x( 'Cookie Policy', 'Page title', 'wporg' ),
    1415        'about/privacy/data-export-request'  => esc_html_x( 'Data Export Request', 'Page title', 'wporg' ),
    1516        'about/privacy/data-erasure-request' => esc_html_x( 'Data Erasure Request', 'Page title', 'wporg' ),
    1617];