diff -r 3d4e9c994f10 -r a86126ab1dd4 wp/wp-admin/freedoms.php --- a/wp/wp-admin/freedoms.php Tue Oct 22 16:11:46 2019 +0200 +++ b/wp/wp-admin/freedoms.php Tue Dec 15 13:49:49 2020 +0100 @@ -7,138 +7,112 @@ */ /** WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); +require_once __DIR__ . '/admin.php'; + +// This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0. +if ( isset( $_GET['privacy-notice'] ) ) { + wp_redirect( admin_url( 'privacy.php' ), 301 ); + exit; +} $title = __( 'Freedoms' ); list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); -include( ABSPATH . 'wp-admin/admin-header.php' ); - -$is_privacy_notice = isset( $_GET['privacy-notice'] ); - -if ( $is_privacy_notice ) { - $freedoms_class = ''; - $privacy_class = ' nav-tab-active'; - $freedoms_aria_current = ''; - $privacy_aria_current = ' aria-current="page"'; -} else { - $freedoms_class = ' nav-tab-active'; - $privacy_class = ''; - $freedoms_aria_current = ' aria-current="page"'; - $privacy_aria_current = ''; -} - +require_once ABSPATH . 'wp-admin/admin-header.php'; ?> -
- -

- -

+
-

- -

+
+
+ +
-
- -
- - - - - -
-

+
+

+ + +

+
-

- WordPress.org stats page.' ), 'https://wordpress.org/about/stats/' ); - ?> -

+ +
-

- WordPress.org/about/privacy.' ), 'https://wordpress.org/about/privacy/' ); - ?> -

-
+
+

- -
-
-

license, the GPL.' ), 'https://wordpress.org/about/license/' ); + __( '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 license, the GPL.' ), + __( 'https://wordpress.org/about/license/' ) + ); ?>

-
+
+ +
-

+

-

+

-

+

-

+

-
-

- check out our trademark guidelines first.' ), 'https://wordpressfoundation.org/trademark-policy/' ); - ?> -

+
-

- +

+

+ check out our trademark guidelines first.' ), + 'https://wordpressfoundation.org/trademark-policy/' + ); + ?> +

+ +

+ plugins and themes there. If you get a plugin or theme from another source, make sure to ask them if it’s GPL first. If they don’t respect the WordPress license, we don’t recommend them.' ), $plugins_url, $themes_url, 'https://wordpress.org/about/license/' ); - ?> -

+ printf( + /* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */ + __( 'Every plugin and theme in WordPress.org’s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding plugins and themes there. If you get a plugin or theme from another source, make sure to ask them if it’s GPL first. If they don’t respect the WordPress license, we don’t recommend them.' ), + $plugins_url, + $themes_url, + __( 'https://wordpress.org/about/license/' ) + ); + ?> +

-

Free Software Foundation.' ); ?>

+

Free Software Foundation.' ); ?>

+
-
-
- +