Make WordPress Core

Changeset 33158


Ignore:
Timestamp:
07/10/2015 10:22:32 PM (9 years ago)
Author:
obenland
Message:

Better context for autofocused elements for screen readers.

Props joedolson for initial patch.
Fixes #30706.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r33154 r33158  
    13111311            <div class="actions">
    13121312                <?php if ( current_user_can( 'upload_files' ) ): ?>
    1313                 <?php /* translators: Hide as in hide header image via the Customizer */ ?>
    1314                 <button type="button"<?php echo $visibility ?> class="button remove"><?php _ex( 'Hide image', 'custom header' ); ?></button>
    1315                 <?php /* translators: New as in add new header image via the Customizer */ ?>
    1316                 <button type="button" class="button new"><?php _ex( 'Add new image', 'header image' ); ?></button>
     1313                <button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
     1314                <button type="button" class="button new" aria-label="<?php esc_attr_e( 'Add new header image' ); ?>"><?php _e( 'Add new image' ); ?></button>
    13171315                <div style="clear:both"></div>
    13181316                <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.