Accessibility: remove title attributes from the available headers in the (no more used) `custom-header.php` screen.
Fixes #35062. Built from https://develop.svn.wordpress.org/trunk@35905 git-svn-id: http://core.svn.wordpress.org/trunk@35869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
47306630ca
commit
fa80eb011f
|
@ -282,14 +282,13 @@ class Custom_Image_Header {
|
|||
foreach ( $headers as $header_key => $header ) {
|
||||
$header_thumbnail = $header['thumbnail_url'];
|
||||
$header_url = $header['url'];
|
||||
$header_desc = empty( $header['description'] ) ? '' : $header['description'];
|
||||
$header_alt_text = empty( $header['alt_text'] ) ? $header_desc : $header['alt_text'];
|
||||
$header_alt_text = empty( $header['alt_text'] ) ? '' : $header['alt_text'];
|
||||
echo '<div class="default-header">';
|
||||
echo '<label><input name="default-header" type="radio" value="' . esc_attr( $header_key ) . '" ' . checked( $header_url, get_theme_mod( 'header_image' ), false ) . ' />';
|
||||
$width = '';
|
||||
if ( !empty( $header['attachment_id'] ) )
|
||||
$width = ' width="230"';
|
||||
echo '<img src="' . set_url_scheme( $header_thumbnail ) . '" alt="' . esc_attr( $header_alt_text ) .'" title="' . esc_attr( $header_desc ) . '"' . $width . ' /></label>';
|
||||
echo '<img src="' . set_url_scheme( $header_thumbnail ) . '" alt="' . esc_attr( $header_alt_text ) .'"' . $width . ' /></label>';
|
||||
echo '</div>';
|
||||
}
|
||||
echo '<div class="clear"></div></div>';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-35904';
|
||||
$wp_version = '4.5-alpha-35905';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue