Feed fixes from MooKitty. Bug 644.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2005-01-09 02:19:30 +00:00
parent 829d460ce4
commit f67ca5c196
2 changed files with 6 additions and 1 deletions

View File

@ -42,6 +42,7 @@ $more = 1;
<?php else : ?>
<content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss() ?>]]></content>
<?php endif; ?>
<?php rss_enclosure(); ?>
</entry>
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
</feed>

View File

@ -38,11 +38,15 @@ $more = 1;
<description><?php the_excerpt_rss() ?></description>
<?php else : ?>
<description><?php the_excerpt_rss() ?></description>
<?php if ( strlen( $post->post_content ) > 0 ) : ?>
<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
<?php else : ?>
<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
<?php endif; ?>
<?php endif; ?>
<wfw:commentRSS><?php echo comments_rss(); ?></wfw:commentRSS>
<?php rss_enclosure(); ?>
</item>
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
</channel>
</rss>
</rss>