From afcbc3d0e63c991c65cb83c00820877053561d22 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 14 Mar 2008 19:23:56 +0000 Subject: [PATCH] Simpler gallery markup in feeds. Fixs #6225. Hat tip: andy. git-svn-id: https://develop.svn.wordpress.org/trunk@7298 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/media.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wp-includes/media.php b/wp-includes/media.php index 742b1bce62..804adca2db 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', "