Better context for autofocused elements for screen readers.

Props joedolson for initial patch.
Fixes #30706.


Built from https://develop.svn.wordpress.org/trunk@33158


git-svn-id: http://core.svn.wordpress.org/trunk@33130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Konstantin Obenland 2015-07-10 22:23:24 +00:00
parent 0ca06cd643
commit 58af8a0784
2 changed files with 3 additions and 5 deletions

View File

@ -1310,10 +1310,8 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
</div>
<div class="actions">
<?php if ( current_user_can( 'upload_files' ) ): ?>
<?php /* translators: Hide as in hide header image via the Customizer */ ?>
<button type="button"<?php echo $visibility ?> class="button remove"><?php _ex( 'Hide image', 'custom header' ); ?></button>
<?php /* translators: New as in add new header image via the Customizer */ ?>
<button type="button" class="button new"><?php _ex( 'Add new image', 'header image' ); ?></button>
<button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
<button type="button" class="button new" aria-label="<?php esc_attr_e( 'Add new header image' ); ?>"><?php _e( 'Add new image' ); ?></button>
<div style="clear:both"></div>
<?php endif; ?>
</div>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-beta2-33157';
$wp_version = '4.3-beta2-33158';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.