Changeset 24550
- Timestamp:
- 07/03/2013 08:43:19 PM (11 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media-template.php
r24320 r24550 354 354 <?php esc_attr_e('Media File'); ?> 355 355 </option> 356 <option value="none"> 357 <?php esc_attr_e('None'); ?> 358 </option> 356 359 </select> 357 360 </label> -
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.