WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/09/2018 03:03:59 PM (20 months ago)
Author:
azaozz
Message:

Add Privacy Tools admin page under the Tools menu.

Props allendav, xkon, azaozz.
See #43435.

File:
1 edited

Legend:

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

    r42343 r42814  
    1515
    1616include( ABSPATH . 'wp-admin/admin-header.php' );
     17
     18$is_privacy_notice = isset( $_GET['privacy-notice'] );
     19
    1720?>
    1821<div class="wrap about-wrap full-width-layout">
     
    2730    <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
    2831    <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
    29     <a href="freedoms.php" class="nav-tab nav-tab-active"><?php _e( 'Freedoms' ); ?></a>
    30     <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
     32    <a href="freedoms.php" class="nav-tab<?php if ( ! $is_privacy_notice ) { echo ' nav-tab-active'; } ?>"><?php _e( 'Freedoms' ); ?></a>
     33    <a href="freedoms.php?privacy-notice" class="nav-tab<?php if ( $is_privacy_notice ) { echo ' nav-tab-active'; } ?>"><?php _e( 'Privacy' ); ?></a>
    3134</h2>
    3235
     36<?php if ( $is_privacy_notice ) : ?>
     37
     38<div class="about-wrap-content">
     39    <p class="about-description"><?php _e( 'From time to time, your WordPress site may send data to WordPress.org &#8212; including, but not limited to &#8212; the version of WordPress you are using, and a list of installed plugins and themes.' ); ?></p>
     40
     41    <p><?php printf( __( 'This data is used to provide general enhancements to WordPress, which includes helping to protect your site by finding and automatically installing new updates. It is also used to calculate statistics, such as those shown on the <a href="%s">WordPress.org stats page</a>.' ), 'https://wordpress.org/about/stats/' ); ?></p>
     42
     43    <p><?php printf( __( 'We take privacy and transparency very seriously. To learn more about what data we collect, and how we use it, please visit <a href="%s">WordPress.org/about/privacy</a>.' ), 'https://wordpress.org/about/privacy/' ); ?></p>
     44</div>
     45
     46<?php else : ?>
    3347<div class="about-wrap-content">
    3448    <p class="about-description"><?php printf( __( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ), 'https://wordpress.org/about/license/' ); ?></p>
     
    5670</div>
    5771
     72<?php endif; ?>
    5873</div>
    5974<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
Note: See TracChangeset for help on using the changeset viewer.