Make WordPress Core


Ignore:
Timestamp:
09/28/2025 10:36:30 PM (2 months ago)
Author:
joedolson
Message:

I18n: Combine duplicate text strings into variables.

In cases where a string is used both for a visible label and a screen reader text label, the screen reader text should never be different from the visible label. To help ensure this doesn't happen, use only a single string. The associated screen reader text comments are no longer required.

This is also true for a few cases where there are strings in contexts where variables can't be used. In these cases, the screen reader text comments are also removed.

Props sabernhardt, swissspidy, audrasjb, joedolson.
Fixes #63620.

File:
1 edited

Legend:

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

    r60681 r60805  
    10231023    ?>
    10241024    <fieldset id="color-picker" class="scheme-list">
    1025         <legend class="screen-reader-text"><span>
    1026             <?php
    1027             /* translators: Hidden accessibility text. */
    1028             _e( 'Administration Color Scheme' );
    1029             ?>
    1030         </span></legend>
     1025        <legend class="screen-reader-text"><span><?php _e( 'Administration Color Scheme' ); ?></span></legend>
    10311026        <?php
    10321027        wp_nonce_field( 'save-color-scheme', 'color-nonce', false );
Note: See TracChangeset for help on using the changeset viewer.