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:
@@ -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>';
|
||||
|
||||
Reference in New Issue
Block a user