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:
parent
0ca06cd643
commit
58af8a0784
|
@ -1310,10 +1310,8 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<?php if ( current_user_can( 'upload_files' ) ): ?>
|
<?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" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
|
||||||
<button type="button"<?php echo $visibility ?> class="button remove"><?php _ex( 'Hide image', 'custom header' ); ?></button>
|
<button type="button" class="button new" aria-label="<?php esc_attr_e( 'Add new header image' ); ?>"><?php _e( 'Add new image' ); ?></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>
|
|
||||||
<div style="clear:both"></div>
|
<div style="clear:both"></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue