Changeset 24550 for trunk/wp-includes/media.php
- Timestamp:
- 07/03/2013 08:43:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r24548 r24550 779 779 $i = 0; 780 780 foreach ( $attachments as $id => $attachment ) { 781 $link = isset($attr['link']) && 'file' == $attr['link'] ? wp_get_attachment_link($id, $size, false, false) : wp_get_attachment_link($id, $size, true, false); 781 if ( ! empty( $attr['link'] ) && 'file' === $attr['link'] ) 782 $image_output = wp_get_attachment_link( $id, $size, false, false ); 783 elseif ( ! empty( $attr['link'] ) && 'none' === $attr['link'] ) 784 $image_output = wp_get_attachment_image( $id, $size, false ); 785 else 786 $image_output = wp_get_attachment_link( $id, $size, true, false ); 787 782 788 $image_meta = wp_get_attachment_metadata( $id ); 783 789 … … 789 795 $output .= " 790 796 <{$icontag} class='gallery-icon {$orientation}'> 791 $ link797 $image_output 792 798 </{$icontag}>"; 793 799 if ( $captiontag && trim($attachment->post_excerpt) ) {
Note: See TracChangeset
for help on using the changeset viewer.