mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-30 16:17:56 +02:00
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:
parent
829d460ce4
commit
f67ca5c196
@ -42,6 +42,7 @@ $more = 1;
|
|||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss() ?>]]></content>
|
<content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss() ?>]]></content>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
<?php rss_enclosure(); ?>
|
||||||
</entry>
|
</entry>
|
||||||
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
||||||
</feed>
|
</feed>
|
||||||
|
@ -38,11 +38,15 @@ $more = 1;
|
|||||||
<description><?php the_excerpt_rss() ?></description>
|
<description><?php the_excerpt_rss() ?></description>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<description><?php the_excerpt_rss() ?></description>
|
<description><?php the_excerpt_rss() ?></description>
|
||||||
|
<?php if ( strlen( $post->post_content ) > 0 ) : ?>
|
||||||
<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
|
<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
|
||||||
|
<?php else : ?>
|
||||||
|
<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
|
||||||
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<wfw:commentRSS><?php echo comments_rss(); ?></wfw:commentRSS>
|
<wfw:commentRSS><?php echo comments_rss(); ?></wfw:commentRSS>
|
||||||
<?php rss_enclosure(); ?>
|
<?php rss_enclosure(); ?>
|
||||||
</item>
|
</item>
|
||||||
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
Loading…
Reference in New Issue
Block a user