Make WordPress Core

Ticket #40794: privacy.diff

File privacy.diff, 3.9 KB (added by swissspidy, 7 years ago)

Early patch for the about page as an inspiration

  • src/wp-admin/about.php

    diff --git src/wp-admin/about.php src/wp-admin/about.php
    index 8c6fb12509..6c3b57bf34 100644
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    4141                        <a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
    4242                        <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
    4343                        <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
     44                        <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
    4445                </h2>
    4546
    4647                <div class="headline-feature feature-video">
  • src/wp-admin/credits.php

    diff --git src/wp-admin/credits.php src/wp-admin/credits.php
    index 5938e9513c..b762a8f964 100644
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    2828        <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
    2929        <a href="credits.php" class="nav-tab nav-tab-active"><?php _e( 'Credits' ); ?></a>
    3030        <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
     31        <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
    3132</h2>
    3233
    3334<?php
  • src/wp-admin/freedoms.php

    diff --git src/wp-admin/freedoms.php src/wp-admin/freedoms.php
    index 2aa9537210..1ad17aeb36 100644
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    2727        <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
    2828        <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
    2929        <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>
    3031</h2>
    3132
    3233<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>
  • new file src/wp-admin/privacy.php

    diff --git src/wp-admin/privacy.php src/wp-admin/privacy.php
    new file mode 100644
    index 0000000000..90a4a18997
    - +  
     1<?php
     2/**
     3 * Credits administration panel.
     4 *
     5 * @package WordPress
     6 * @subpackage Administration
     7 */
     8
     9/** WordPress Administration Bootstrap */
     10require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once( dirname( __FILE__ ) . '/includes/credits.php' );
     12
     13$title = __( 'Credits' );
     14
     15list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
     16
     17include( ABSPATH . 'wp-admin/admin-header.php' );
     18?>
     19<div class="wrap about-wrap">
     20
     21<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
     22
     23<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s helps you get your site set up the way you want it.' ), $display_version ); ?></p>
     24
     25<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
     26
     27<h2 class="nav-tab-wrapper wp-clearfix">
     28        <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
     29        <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
     30        <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
     31        <a href="privacy.php" class="nav-tab nav-tab-active"><?php _e( 'Privacy' ); ?></a>
     32</h2>
     33
     34<p class="about-description"><?php _e( 'Your WordPress site may send anonymous data including the list of installed plugins and themes to WordPress.org when requesting updates.' ); ?></p>
     35
     36<p><?php _e( ' This data helps WordPress to protect your site by finding and automatically installing new updates. None of the information shared with the update server contains personally identifiable information.' ); ?></p>
     37
     38<p><?php printf( __( 'We take privacy seriously. Learn more at <a href="%s">wordpress.org/privacy</a>.' ), __( 'https://wordpress.org/about/privacy/' ) ); ?></p>
     39
     40</div>
     41<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>