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
This commit is contained in:
matt 2008-03-14 19:23:56 +00:00
parent e098836829
commit 5ceb47d0c4
1 changed files with 7 additions and 0 deletions

View File

@ -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', "
<style type='text/css'>
.gallery {