Adding hooks in syndication feeds.

git-svn-id: https://develop.svn.wordpress.org/trunk@2625 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-06-10 18:45:39 +00:00
parent 5a7601b50c
commit 1b7bfde51f
4 changed files with 11 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ $more = 1;
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
<?php do_action('rss2_ns'); ?>
>
<channel>
@@ -27,7 +28,7 @@ $more = 1;
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate>
<generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator>
<language><?php echo get_option('rss_language'); ?></language>
<?php do_action('rss2_head'); ?>
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
<item>
<title><?php the_title_rss() ?></title>
@@ -50,6 +51,7 @@ $more = 1;
<?php endif; ?>
<wfw:commentRSS><?php echo comments_rss(); ?></wfw:commentRSS>
<?php rss_enclosure(); ?>
<?php do_action('rss2_item'); ?>
</item>
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
</channel>