From 5ceb47d0c42e3c44f2176fda09bff4c24b08622f Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 14 Mar 2008 19:23:56 +0000 Subject: [PATCH] Simpler gallery markup in feeds. Fixs #6225. Hat tip: andy. git-svn-id: http://svn.automattic.com/wordpress/trunk@7298 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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', "