Feed improvements and suggestions from Mark Pilgrim.
git-svn-id: http://svn.automattic.com/wordpress/trunk@901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
221071e634
commit
5e9c38f1f4
|
@ -19,8 +19,8 @@ require('wp-blog-header.php');
|
|||
</style>
|
||||
|
||||
<link rel="stylesheet" type="text/css" media="print" href="<?php echo $siteurl; ?>/print.css" />
|
||||
<link rel="alternate" type="text/xml" title="RDF" href="<?php bloginfo('rdf_url'); ?>" />
|
||||
<link rel="alternate" type="text/xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
|
||||
<link rel="alternate" type="application/rdf+xml" title="RDF" href="<?php bloginfo('rdf_url'); ?>" />
|
||||
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
|
||||
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_leng
|
|||
<?php the_category_rss('rdf') ?>
|
||||
<?php $more = 1; if ($rss_use_excerpt) {
|
||||
?>
|
||||
<summary type="text/html"><?php the_excerpt_rss($rss_excerpt_length, 2) ?></summary>
|
||||
<summary type="text/html" mode="escaped"><?php the_excerpt_rss($rss_excerpt_length, 2) ?></summary>
|
||||
<?php
|
||||
} else { // use content
|
||||
?>
|
||||
|
|
|
@ -5,7 +5,7 @@ if (! $feed) {
|
|||
require('wp-blog-header.php');
|
||||
}
|
||||
|
||||
header('Content-type: text/xml', true);
|
||||
header('Content-type: application/rdf+xml', true);
|
||||
|
||||
/* This doesn't take into account edits
|
||||
// Get the time of the most recent article
|
||||
|
|
|
@ -5,7 +5,7 @@ if (! $feed) {
|
|||
require('wp-blog-header.php');
|
||||
}
|
||||
|
||||
header('Content-type: text/xml', true);
|
||||
header('Content-type: application/rss+xml', true);
|
||||
|
||||
/* This doesn't take into account edits
|
||||
// Get the time of the most recent article
|
||||
|
|
Loading…
Reference in New Issue