Make WordPress Core

Ticket #30706: 30706.patch

File 30706.patch, 1.1 KB (added by joedolson, 9 years ago)

Add aria-label to header image control.

  • wp-includes/class-wp-customize-control.php

     
    11691169                        </div>
    11701170                        <div class="actions">
    11711171                                <?php /* translators: Hide as in hide header image via the Customizer */ ?>
    1172                                 <button type="button"<?php echo $visibility ?> class="button remove"><?php _ex( 'Hide image', 'custom header' ); ?></button>
     1172                                <button type="button"<?php echo $visibility ?> class="button remove" aria-label="<?php _ex( 'Hide header image', 'custom header' ); ?>"><?php _ex( 'Hide image', 'custom header' ); ?></button>
    11731173                                <?php /* translators: New as in add new header image via the Customizer */ ?>
    1174                                 <button type="button" class="button new"><?php _ex( 'Add new image', 'header image' ); ?></button>
     1174                                <button type="button" class="button new" aria-label="<?php _ex( 'Add new header image', 'header image' ); ?>"><?php _ex( 'Add new image', 'header image' ); ?></button>
    11751175                                <div style="clear:both"></div>
    11761176                        </div>
    11771177                        <div class="choices">