Changeset 2070

Show
Ignore:
Timestamp:
01/09/05 02:19:30 (4 years ago)
Author:
rboren
Message:

Feed fixes from MooKitty. Bug 644.

Files:

Legend:

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

    r2068 r2070  
    4343        <content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss() ?>]]></content> 
    4444<?php endif; ?> 
     45<?php rss_enclosure(); ?> 
    4546    </entry> 
    4647    <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?> 
  • trunk/wp-rss2.php

    r2068 r2070  
    3939<?php else : ?> 
    4040        <description><?php the_excerpt_rss() ?></description> 
     41    <?php if ( strlen( $post->post_content ) > 0 ) : ?> 
    4142        <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded> 
     43    <?php else : ?> 
     44        <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded> 
     45    <?php endif; ?> 
    4246<?php endif; ?> 
    4347        <wfw:commentRSS><?php echo comments_rss(); ?></wfw:commentRSS>