Ticket #46124: 46124.3.patch
File 46124.3.patch, 860 bytes (added by , 3 years ago) |
---|
-
src/wp-includes/theme.php
1208 1208 $width = absint( $header->width ); 1209 1209 $height = absint( $header->height ); 1210 1210 1211 // Use alternative text assigned to the image, if available. Otherwise, leave it empty. 1212 if ( ! empty( $header->attachment_id ) && ! empty( get_post_meta( $header->attachment_id, '_wp_attachment_image_alt', true ) ) ) { 1213 $alt = get_post_meta( $header->attachment_id, '_wp_attachment_image_alt', true ); 1214 } else { 1215 $alt = ''; 1216 } 1217 1211 1218 $attr = wp_parse_args( 1212 1219 $attr, 1213 1220 array( … … 1214 1221 'src' => $header->url, 1215 1222 'width' => $width, 1216 1223 'height' => $height, 1217 'alt' => get_bloginfo( 'name' ),1224 'alt' => $alt, 1218 1225 ) 1219 1226 ); 1220 1227