Make WordPress Core


Ignore:
Timestamp:
09/02/2019 09:43:39 PM (5 years ago)
Author:
afercia
Message:

Accessibility: Audit usage of abbreviations.

Title attributes on abbreviations are only available to a minority of users. The
best option is to avoid unnecessary abbreviations when possible. In the other cases,
use an <abbr> element (which provides a hint to user agents on how to announce
and display the abbreviation) and provide an expansion in plain text on first use.

  • readme.html: improves abbreviations and removes unnecessary title attributes
  • options-general: removes unnecessary abbreviations and improves the remaining ones
  • customizer schedule changeset date: removes unnecessary abbreviations and improves the remaining ones
  • posts table date: uses a span element instead of an abbr element because this is not an abbreviation

Fixes #46980.

File:
1 edited

Legend:

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

    r45926 r45930  
    229229</select>
    230230
    231 <p class="description" id="timezone-description"><?php _e( 'Choose either a city in the same timezone as you or a UTC timezone offset.' ); ?></p>
     231<p class="description" id="timezone-description">
     232<?php
     233    printf(
     234        /* translators: %s: UTC abbreviation */
     235        __( 'Choose either a city in the same timezone as you or a %s (Coordinated Universal Time) time offset.' ),
     236        '<abbr>UTC</abbr>'
     237    );
     238    ?>
     239</p>
    232240
    233241<p class="timezone-info">
     
    235243    <?php
    236244        printf(
    237             /* translators: 1: UTC abbreviation, 2: UTC time */
    238             __( 'Universal time (%1$s) is %2$s.' ),
    239             '<abbr>' . __( 'UTC' ) . '</abbr>',
     245            /* translators: 1: UTC time */
     246            __( 'Universal time is %1$s.' ),
    240247            '<code>' . date_i18n( $timezone_format, false, true ) . '</code>'
    241248        );
Note: See TracChangeset for help on using the changeset viewer.