Make WordPress Core

Changeset 7298


Ignore:
Timestamp:
03/14/2008 07:23:56 PM (17 years ago)
Author:
matt
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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', "
Note: See TracChangeset for help on using the changeset viewer.