WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/09/2019 08:57:06 PM (14 months ago)
Author:
afercia
Message:

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.

File:
1 edited

Legend:

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

    r45292 r45300  
    1919<div class="wrap about-wrap full-width-layout">
    2020
    21 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
     21<h1>
     22    <?php
     23    /* translators: %s: The current WordPress version number */
     24    printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version );
     25    ?>
     26</h1>
    2227
    2328<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>
    2429
    25 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
     30<div class="wp-badge">
     31    <?php
     32    /* translators: %s: The current WordPress version number */
     33    printf( __( 'Version %s' ), $display_version );
     34    ?>
     35</div>
    2636
    2737<nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
    2838    <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
    29     <a href="credits.php" class="nav-tab nav-tab-active"><?php _e( 'Credits' ); ?></a>
     39    <a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a>
    3040    <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
    3141    <a href="freedoms.php?privacy-notice" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
     
    3949if ( ! $credits ) {
    4050    echo '<p class="about-description">';
    41     /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
    4251    printf(
     52        /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
    4353        __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
    4454        'https://wordpress.org/about/',
     
    124134// These are strings returned by the API that we want to be translatable
    125135__( 'Project Leaders' );
     136/* translators: %s: The current WordPress version number */
    126137__( 'Core Contributors to WordPress %s' );
    127138__( 'Noteworthy Contributors' );
Note: See TracChangeset for help on using the changeset viewer.