diff --git a/wp-includes/media.php b/wp-includes/media.php index 742b1bce6..804adca2d 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -345,6 +345,13 @@ function gallery_shortcode($attr) { if ( empty($attachments) ) return ''; + if ( is_feed() ) { + $output = "\n"; + foreach ( $attachments as $id => $attachment ) + $output .= wp_get_attachment_link($id, 'thumbnail', true) . "\n"; + return $output; + } + $output = apply_filters('gallery_style', "