Ticket #22101: 22101.gallery.link.in.feed.diff
File 22101.gallery.link.in.feed.diff, 810 bytes (added by , 9 years ago) |
---|
-
wp-includes/media.php
1647 1647 if ( is_feed() ) { 1648 1648 $output = "\n"; 1649 1649 foreach ( $attachments as $att_id => $attachment ) { 1650 $output .= wp_get_attachment_link( $att_id, $atts['size'], true ) . "\n"; 1650 if ( ! empty( $atts['link'] ) && 'file' === $atts['link'] ) { 1651 $output .= wp_get_attachment_link( $att_id, $atts['size'], false ); 1652 } elseif ( ! empty( $atts['link'] ) && 'none' === $atts['link'] ) { 1653 $output .= wp_get_attachment_image( $att_id, $atts['size'], false, $attr ); 1654 } else { 1655 $output .= wp_get_attachment_link( $att_id, $atts['size'], true ); 1656 } 1657 $output .= "\n"; 1651 1658 } 1652 1659 return $output; 1653 1660 }