Changeset 50274
- Timestamp:
- 02/09/2021 05:25:18 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r50236 r50274 3442 3442 if ( isset( $attachments[ $k ] ) ) { 3443 3443 $attachment_id = $attachments[ $k ]->ID; 3444 $output = wp_get_attachment_link( $attachment_id, $size, true, false, $text ); 3444 $attr = array( 'alt' => get_the_title( $attachment_id ) ); 3445 $output = wp_get_attachment_link( $attachment_id, $size, true, false, $text, $attr ); 3445 3446 } 3446 3447 }
Note: See TracChangeset
for help on using the changeset viewer.