Changeset 29914 for trunk/src/wp-includes/media.php
- Timestamp:
- 10/16/2014 04:27:07 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r29837 r29914 1057 1057 $i = 0; 1058 1058 foreach ( $attachments as $id => $attachment ) { 1059 1060 $attr = ( trim( $attachment->post_excerpt ) ) ? array( 'aria-describedby' => "$selector-$id" ) : ''; 1059 1061 if ( ! empty( $atts['link'] ) && 'file' === $atts['link'] ) { 1060 $image_output = wp_get_attachment_link( $id, $atts['size'], false, false );1062 $image_output = wp_get_attachment_link( $id, $atts['size'], false, false, $attr ); 1061 1063 } elseif ( ! empty( $atts['link'] ) && 'none' === $atts['link'] ) { 1062 $image_output = wp_get_attachment_image( $id, $atts['size'], false );1064 $image_output = wp_get_attachment_image( $id, $atts['size'], false, $attr ); 1063 1065 } else { 1064 $image_output = wp_get_attachment_link( $id, $atts['size'], true, false );1066 $image_output = wp_get_attachment_link( $id, $atts['size'], true, false, false, $attr ); 1065 1067 } 1066 1068 $image_meta = wp_get_attachment_metadata( $id ); … … 1077 1079 if ( $captiontag && trim($attachment->post_excerpt) ) { 1078 1080 $output .= " 1079 <{$captiontag} class='wp-caption-text gallery-caption' >1081 <{$captiontag} class='wp-caption-text gallery-caption' id='$selector-$id'> 1080 1082 " . wptexturize($attachment->post_excerpt) . " 1081 1083 </{$captiontag}>";
Note:
See TracChangeset
for help on using the changeset viewer.