diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-02-23 15:47:59 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-02-23 15:47:59 +0000 |
commit | 132f53ddaeb250222a4ac85ebc0bf4dd780db60e (patch) | |
tree | d3deccaeee2dd2460dc36fef83685262ef0b64fc /wp-includes/feed-rss2.php | |
parent | 5235dfe56983b253c4ea3ec91bc436e5ffb2660a (diff) | |
download | wordpress-mu-132f53ddaeb250222a4ac85ebc0bf4dd780db60e.tar.gz wordpress-mu-132f53ddaeb250222a4ac85ebc0bf4dd780db60e.tar.xz wordpress-mu-132f53ddaeb250222a4ac85ebc0bf4dd780db60e.zip |
WP Merge to 4929
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@899 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/feed-rss2.php')
-rw-r--r-- | wp-includes/feed-rss2.php | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/wp-includes/feed-rss2.php b/wp-includes/feed-rss2.php new file mode 100644 index 0000000..03711df --- /dev/null +++ b/wp-includes/feed-rss2.php @@ -0,0 +1,50 @@ +<?php +header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); +$more = 1; + +?> +<?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> + +<!-- generator="wordpress/<?php bloginfo_rss('version') ?>" --> +<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/" + <?php do_action('rss2_ns'); ?> +> + +<channel> + <title><?php bloginfo_rss('name'); ?></title> + <link><?php bloginfo_rss('url') ?></link> + <description><?php bloginfo_rss("description") ?></description> + <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 while( have_posts()) : the_post(); ?> + <item> + <title><?php the_title_rss() ?></title> + <link><?php permalink_single_rss() ?></link> + <comments><?php comments_link(); ?></comments> + <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate> + <dc:creator><?php the_author() ?></dc:creator> + <?php the_category_rss() ?> + + <guid isPermaLink="false"><?php the_guid(); ?></guid> +<?php if (get_option('rss_use_excerpt')) : ?> + <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> +<?php else : ?> + <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> + <?php if ( strlen( $post->post_content ) > 0 ) : ?> + <content:encoded><![CDATA[<?php the_content() ?>]]></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(); ?> + <?php do_action('rss2_item'); ?> + </item> + <?php endwhile; ?> +</channel> +</rss> |