Don't use deprecated start_wp(). Props westi. fixes #3188

git-svn-id: https://develop.svn.wordpress.org/trunk@4465 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-11-14 01:24:27 +00:00
parent 5d37af4e0d
commit cf30cd6e7e
6 changed files with 12 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ $more = 1;
<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(); ?>
<?php while( have_posts()) : the_post(); ?>
<item>
<title><?php the_title_rss() ?></title>
<link><?php permalink_single_rss() ?></link>
@@ -51,6 +51,6 @@ $more = 1;
<?php rss_enclosure(); ?>
<?php do_action('rss2_item'); ?>
</item>
<?php $items_count++; if (($items_count == get_option('posts_per_rss')) && !is_date()) { break; } } } ?>
<?php endwhile; ?>
</channel>
</rss>