Ticket #46124: 46124.4.patch
File 46124.4.patch, 862 bytes (added by , 3 years ago) |
---|
-
src/wp-includes/theme.php
1194 1194 $width = absint( $header->width ); 1195 1195 $height = absint( $header->height ); 1196 1196 1197 // Use alternative text assigned to the image, if available. Otherwise, leave it empty. 1198 if ( ! empty( $header->attachment_id ) && is_string( get_post_meta( $header->attachment_id, '_wp_attachment_image_alt', true ) ) ) { 1199 $alt = get_post_meta( $header->attachment_id, '_wp_attachment_image_alt', true ); 1200 } else { 1201 $alt = ''; 1202 } 1203 1197 1204 $attr = wp_parse_args( 1198 1205 $attr, 1199 1206 array( … … 1200 1207 'src' => $header->url, 1201 1208 'width' => $width, 1202 1209 'height' => $height, 1203 'alt' => get_bloginfo( 'name' ),1210 'alt' => $alt, 1204 1211 ) 1205 1212 ); 1206 1213