Ticket #6225: 6225.diff

File 6225.diff, 518 bytes (added by andy, 5 years ago)
Line 
1Index: wp-includes/media.php
2===================================================================
3--- wp-includes/media.php       (revision 7295)
4+++ wp-includes/media.php       (working copy)
5@@ -345,6 +345,13 @@
6        if ( empty($attachments) )
7                return '';
8 
9+       if ( is_feed() ) {
10+               $output = "\n";
11+               foreach ( $attachments as $id => $attachment )
12+                       $output .= wp_get_attachment_link($id, 'thumbnail', true) . "\n";
13+               return $output;
14+       }
15+
16        $output = apply_filters('gallery_style', "
17                <style type='text/css'>
18                        .gallery {