Minor changes to RSS.
git-svn-id: https://develop.svn.wordpress.org/trunk@1223 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6736c31bd6
commit
b49aa0e51a
@ -3,7 +3,7 @@ if (! $feed) {
|
||||
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').'"?'.'>';
|
||||
?>
|
||||
|
@ -13,9 +13,9 @@ header('Content-type: text/xml', true);
|
||||
<!-- generator="wordpress/<?php echo $wp_version ?>" -->
|
||||
<rss version="0.92">
|
||||
<channel>
|
||||
<title><?php bloginfo_rss("name") ?></title>
|
||||
<link><?php bloginfo_rss("url") ?></link>
|
||||
<description><?php bloginfo_rss("description") ?></description>
|
||||
<title><?php bloginfo_rss('name') ?></title>
|
||||
<link><?php bloginfo_rss('url') ?></link>
|
||||
<description><?php bloginfo_rss('description') ?></description>
|
||||
<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT')); ?></lastBuildDate>
|
||||
<docs>http://backend.userland.com/rss092</docs>
|
||||
|
||||
@ -29,7 +29,7 @@ header('Content-type: text/xml', true);
|
||||
$more = 1;
|
||||
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
|
||||
} else { // use content
|
||||
?>
|
||||
|
@ -35,7 +35,7 @@ header('Content-type: text/xml', true);
|
||||
<?php if (get_settings('rss_use_excerpt')) : ?>
|
||||
<description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
|
||||
<?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>
|
||||
<?php endif; ?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user