mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
e098836829
commit
5ceb47d0c4
@ -345,6 +345,13 @@ function gallery_shortcode($attr) {
|
|||||||
if ( empty($attachments) )
|
if ( empty($attachments) )
|
||||||
return '';
|
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', "
|
$output = apply_filters('gallery_style', "
|
||||||
<style type='text/css'>
|
<style type='text/css'>
|
||||||
.gallery {
|
.gallery {
|
||||||
|
Loading…
Reference in New Issue
Block a user