mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
27994975f9
This includes numerous improvements: - Removes the jazzer name. - Ensures `WordPress` is translatable for consistency with other occurrences in Core. - Changes all instances of `Block Editor` to `block editor` to match the spelling best practices. - Updates the PHP 7.4 compatibility section with more suitable text. - Introduction in `credits.php`, `freedoms.php`, and `privacy.php` have been updated to be consistent with the About page. - Fixes the `aria-current` attribute in tab navigation. Reviewed by SergeyBiryukov, desrosj. Props SergeyBiryukov, audrasjb, desrosj, ryelle, afercia. See #47708. Built from https://develop.svn.wordpress.org/trunk@46572 git-svn-id: http://core.svn.wordpress.org/trunk@46369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
132 lines
4.8 KiB
PHP
132 lines
4.8 KiB
PHP
<?php
|
|
/**
|
|
* Your Rights administration panel.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Administration
|
|
*/
|
|
|
|
/** WordPress Administration Bootstrap */
|
|
require_once( dirname( __FILE__ ) . '/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' );
|
|
?>
|
|
<div class="wrap about-wrap full-width-layout">
|
|
|
|
<div class="about__header">
|
|
<div class="about__header-title">
|
|
<h1>
|
|
<span><?php echo $display_version; ?></span>
|
|
<?php _e( 'WordPress' ); ?>
|
|
</h1>
|
|
</div>
|
|
|
|
<div class="about__header-badge wp-badge">
|
|
<?php
|
|
printf(
|
|
/* translators: %s: The current WordPress version number. */
|
|
__( 'Version %s' ),
|
|
$display_version
|
|
);
|
|
?>
|
|
</div>
|
|
|
|
<div class="about__header-text">
|
|
<p>
|
|
<?php
|
|
printf(
|
|
/* translators: %s: The current WordPress version number. */
|
|
__( 'Introducing our most refined user experience with the improved block editor in WordPress %s!' ),
|
|
$display_version
|
|
);
|
|
?>
|
|
</p>
|
|
</div>
|
|
|
|
<nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
|
|
<a href="about.php" class="nav-tab"><?php _e( 'What’s New' ); ?></a>
|
|
<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
|
|
<a href="freedoms.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Freedoms' ); ?></a>
|
|
<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
|
|
</nav>
|
|
</div>
|
|
|
|
<div class="about-wrap-content">
|
|
<div class="feature-section has-1-columns">
|
|
<h2><?php _e( 'Freedoms' ); ?></h2>
|
|
<p class="about-description">
|
|
<?php
|
|
printf(
|
|
/* translators: %s: 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 <a href="%s">license</a>, the GPL.' ),
|
|
__( 'https://wordpress.org/about/license/' )
|
|
);
|
|
?>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="feature-section has-4-columns is-fullwidth">
|
|
<div class="column">
|
|
<div class="freedoms-image"></div>
|
|
<h3><?php _e( 'The 1st Freedom' ); ?></h3>
|
|
<p><?php _e( 'To run the program for any purpose.' ); ?></p>
|
|
</div>
|
|
<div class="column">
|
|
<div class="freedoms-image"></div>
|
|
<h3><?php _e( 'The 2nd Freedom' ); ?></h3>
|
|
<p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
|
|
</div>
|
|
<div class="column">
|
|
<div class="freedoms-image"></div>
|
|
<h3><?php _e( 'The 3rd Freedom' ); ?></h3>
|
|
<p><?php _e( 'To redistribute.' ); ?></p>
|
|
</div>
|
|
<div class="column">
|
|
<div class="freedoms-image"></div>
|
|
<h3><?php _e( 'The 4th Freedom' ); ?></h3>
|
|
<p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="feature-section has-1-columns">
|
|
<p>
|
|
<?php
|
|
printf(
|
|
/* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
|
|
__( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We’re flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ),
|
|
'https://wordpressfoundation.org/trademark-policy/'
|
|
);
|
|
?>
|
|
</p>
|
|
|
|
<p>
|
|
<?php
|
|
$plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
|
|
$themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
|
|
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 <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it’s GPL</a> first. If they don’t respect the WordPress license, we don’t recommend them.' ),
|
|
$plugins_url,
|
|
$themes_url,
|
|
__( 'https://wordpress.org/about/license/' )
|
|
);
|
|
?>
|
|
</p>
|
|
|
|
<p><?php _e( 'Don’t you wish all software came with these freedoms? So do we! For more information, check out the <a href="https://www.fsf.org/">Free Software Foundation</a>.' ); ?></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
|