mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user