Make WordPress Core

Changeset 35905


Ignore:
Timestamp:
12/14/2015 12:08:24 AM (8 years ago)
Author:
afercia
Message:

Accessibility: remove title attributes from the available headers in the (no more used) custom-header.php screen.

Fixes #35062.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/custom-header.php

    r35567 r35905  
    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 ) . ' />';
     
    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        }
Note: See TracChangeset for help on using the changeset viewer.