Changeset 7298

Show
Ignore:
Timestamp:
03/14/08 19:23:56 (6 months ago)
Author:
matt
Message:

Simpler gallery markup in feeds. Fixs #6225. Hat tip: andy.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/media.php

    r7271 r7298  
    345345    if ( empty($attachments) ) 
    346346        return ''; 
     347 
     348    if ( is_feed() ) { 
     349        $output = "\n"; 
     350        foreach ( $attachments as $id => $attachment ) 
     351            $output .= wp_get_attachment_link($id, 'thumbnail', true) . "\n"; 
     352        return $output; 
     353    } 
    347354 
    348355    $output = apply_filters('gallery_style', "