Minor changes to RSS.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-05-05 06:32:18 +00:00
parent 95d854b4f5
commit e73da6f268
3 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@ if (! $feed) {
require('wp-blog-header.php'); require('wp-blog-header.php');
} }
header('Content-type: application/rss+xml', true); header('Content-type: text/xml', true);
echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>';
?> ?>

View File

@ -13,9 +13,9 @@ header('Content-type: text/xml', true);
<!-- generator="wordpress/<?php echo $wp_version ?>" --> <!-- generator="wordpress/<?php echo $wp_version ?>" -->
<rss version="0.92"> <rss version="0.92">
<channel> <channel>
<title><?php bloginfo_rss("name") ?></title> <title><?php bloginfo_rss('name') ?></title>
<link><?php bloginfo_rss("url") ?></link> <link><?php bloginfo_rss('url') ?></link>
<description><?php bloginfo_rss("description") ?></description> <description><?php bloginfo_rss('description') ?></description>
<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT')); ?></lastBuildDate> <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT')); ?></lastBuildDate>
<docs>http://backend.userland.com/rss092</docs> <docs>http://backend.userland.com/rss092</docs>
@ -29,7 +29,7 @@ header('Content-type: text/xml', true);
$more = 1; $more = 1;
if (get_settings('rss_use_excerpt')) { if (get_settings('rss_use_excerpt')) {
?> ?>
<description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), get_settings('rss_encoded_html')) ?></description> <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
<?php <?php
} else { // use content } else { // use content
?> ?>

View File

@ -35,7 +35,7 @@ header('Content-type: text/xml', true);
<?php if (get_settings('rss_use_excerpt')) : ?> <?php if (get_settings('rss_use_excerpt')) : ?>
<description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description> <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
<?php else : ?> <?php else : ?>
<description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description> <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded> <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
<?php endif; ?> <?php endif; ?>