diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-11-24 16:16:44 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-11-24 16:16:44 +0000 |
commit | 600b71019494e1c29898a620e58c0d2602f37b74 (patch) | |
tree | 21181d77ad4ebbcd42cd883e509c08a568d29514 /wp-rss2.php | |
parent | 7935d0bd9ef23d32ae29a95bd6c3ea0b6eab2973 (diff) | |
download | wordpress-mu-600b71019494e1c29898a620e58c0d2602f37b74.tar.gz wordpress-mu-600b71019494e1c29898a620e58c0d2602f37b74.tar.xz wordpress-mu-600b71019494e1c29898a620e58c0d2602f37b74.zip |
WP Merge to 4524
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@810 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-rss2.php')
-rw-r--r-- | wp-rss2.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wp-rss2.php b/wp-rss2.php index baec198..4addfc4 100644 --- a/wp-rss2.php +++ b/wp-rss2.php @@ -12,7 +12,7 @@ $more = 1; <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> <!-- generator="wordpress/<?php bloginfo_rss('version') ?>" --> -<rss version="2.0" +<rss version="2.0" 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/" @@ -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> |