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
This commit is contained in:
Matt Mullenweg 2008-03-14 19:23:56 +00:00
parent b69f10d2ad
commit afcbc3d0e6
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 {