Skip to content

Commit a366c4f

Browse files
committed
Accessibility: remove title attributes from the available headers in the (no more used) custom-header.php screen.
Fixes #35062. git-svn-id: https://develop.svn.wordpress.org/trunk@35905 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 94da64b commit a366c4f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/wp-admin/custom-header.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,13 @@ public function show_header_selector( $type = 'default' ) {
282282
foreach ( $headers as $header_key => $header ) {
283283
$header_thumbnail = $header['thumbnail_url'];
284284
$header_url = $header['url'];
285-
$header_desc = empty( $header['description'] ) ? '' : $header['description'];
286-
$header_alt_text = empty( $header['alt_text'] ) ? $header_desc : $header['alt_text'];
285+
$header_alt_text = empty( $header['alt_text'] ) ? '' : $header['alt_text'];
287286
echo '<div class="default-header">';
288287
echo '<label><input name="default-header" type="radio" value="' . esc_attr( $header_key ) . '" ' . checked( $header_url, get_theme_mod( 'header_image' ), false ) . ' />';
289288
$width = '';
290289
if ( !empty( $header['attachment_id'] ) )
291290
$width = ' width="230"';
292-
echo '<img src="' . set_url_scheme( $header_thumbnail ) . '" alt="' . esc_attr( $header_alt_text ) .'" title="' . esc_attr( $header_desc ) . '"' . $width . ' /></label>';
291+
echo '<img src="' . set_url_scheme( $header_thumbnail ) . '" alt="' . esc_attr( $header_alt_text ) .'"' . $width . ' /></label>';
293292
echo '</div>';
294293
}
295294
echo '<div class="clear"></div></div>';

0 commit comments

Comments
 (0)