Changeset 25665
- Timestamp:
- 10/02/2013 08:45:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r25485 r25665 734 734 'size' => 'thumbnail', 735 735 'include' => '', 736 'exclude' => '' 736 'exclude' => '', 737 'link' => '' 737 738 ), $attr, 'gallery')); 738 739 … … 808 809 $i = 0; 809 810 foreach ( $attachments as $id => $attachment ) { 810 if ( ! empty( $ attr['link'] ) && 'file' === $attr['link'])811 if ( ! empty( $link ) && 'file' === $link ) 811 812 $image_output = wp_get_attachment_link( $id, $size, false, false ); 812 elseif ( ! empty( $ attr['link'] ) && 'none' === $attr['link'])813 elseif ( ! empty( $link ) && 'none' === $link ) 813 814 $image_output = wp_get_attachment_image( $id, $size, false ); 814 815 else
Note: See TracChangeset
for help on using the changeset viewer.