mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-28 00:14:27 +00:00
Accessibility: Add aria-current to the links in the <nav> elements introduced in [44905].
Also fixes a few translators comments and coding standards. Props audrasjb. Fixes #47106. git-svn-id: https://develop.svn.wordpress.org/trunk@45300 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -18,15 +18,25 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
<div class="wrap about-wrap full-width-layout">
|
||||
|
||||
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
|
||||
<h1>
|
||||
<?php
|
||||
/* translators: %s: The current WordPress version number */
|
||||
printf( __( 'Welcome to WordPress %s' ), $display_version );
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<p class="about-text"><?php printf( __( 'Congratulations on updating to WordPress 5.2! This update makes it easier than ever to fix your site if something goes wrong.' ), $display_version ); ?></p>
|
||||
|
||||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||
<div class="wp-badge">
|
||||
<?php
|
||||
/* translators: %s: The current WordPress version number */
|
||||
printf( __( 'Version %s' ), $display_version );
|
||||
?>
|
||||
</div>
|
||||
|
||||
<nav class="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 nav-tab-active"><?php _e( 'Credits' ); ?></a>
|
||||
<a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a>
|
||||
<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
|
||||
<a href="freedoms.php?privacy-notice" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
|
||||
</nav>
|
||||
@@ -38,8 +48,8 @@ $credits = wp_credits();
|
||||
|
||||
if ( ! $credits ) {
|
||||
echo '<p class="about-description">';
|
||||
/* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
|
||||
printf(
|
||||
/* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
|
||||
__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
|
||||
'https://wordpress.org/about/',
|
||||
__( 'https://make.wordpress.org/' )
|
||||
@@ -123,6 +133,7 @@ return;
|
||||
|
||||
// These are strings returned by the API that we want to be translatable
|
||||
__( 'Project Leaders' );
|
||||
/* translators: %s: The current WordPress version number */
|
||||
__( 'Core Contributors to WordPress %s' );
|
||||
__( 'Noteworthy Contributors' );
|
||||
__( 'Cofounder, Project Lead' );
|
||||
|
||||
Reference in New Issue
Block a user