Changeset 23649
- Timestamp:
- 03/08/2013 04:13:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r23626 r23649 779 779 foreach ( $attachments as $id => $attachment ) { 780 780 $link = isset($attr['link']) && 'file' == $attr['link'] ? wp_get_attachment_link($id, $size, false, false) : wp_get_attachment_link($id, $size, true, false); 781 $image_meta = wp_get_attachment_metadata( $id ); 782 $orientation = ( $image_meta['height'] > $image_meta['width'] ) ? 'portrait' : 'landscape'; 781 783 782 784 $output .= "<{$itemtag} class='gallery-item'>"; 783 785 $output .= " 784 <{$icontag} class='gallery-icon '>786 <{$icontag} class='gallery-icon {$orientation}'> 785 787 $link 786 788 </{$icontag}>";
Note: See TracChangeset
for help on using the changeset viewer.