Changeset 52256
- Timestamp:
- 11/26/2021 10:54:10 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r52247 r52256 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, … … 1201 1208 'width' => $width, 1202 1209 'height' => $height, 1203 'alt' => get_bloginfo( 'name' ),1210 'alt' => $alt, 1204 1211 ) 1205 1212 );
Note: See TracChangeset
for help on using the changeset viewer.