the Atom feed should always provide an excerpt, even in full content mode
git-svn-id: https://develop.svn.wordpress.org/trunk@1356 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
717855f007
commit
5b5f1077da
@ -6,6 +6,7 @@ if (! $feed) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
header('Content-type: application/atom+xml', true);
|
header('Content-type: application/atom+xml', true);
|
||||||
|
$more = 1;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
|
<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
|
||||||
@ -31,12 +32,10 @@ header('Content-type: application/atom+xml', true);
|
|||||||
<modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_modified_gmt); ?></modified>
|
<modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_modified_gmt); ?></modified>
|
||||||
<issued><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt); ?></issued>
|
<issued><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt); ?></issued>
|
||||||
<?php the_category_rss('rdf') ?>
|
<?php the_category_rss('rdf') ?>
|
||||||
<?php $more = 1; if (get_settings('rss_use_excerpt')) { ?>
|
|
||||||
<summary type="text/html" mode="escaped"><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></summary>
|
<summary type="text/html" mode="escaped"><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></summary>
|
||||||
<?php } else { // use content ?>
|
<?php if (!get_settings('rss_use_excerpt')) { ?>
|
||||||
<summary type="text/html"><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></summary>
|
|
||||||
<content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
|
<content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
|
||||||
<?php } // end else use content ?>
|
<?php } ?>
|
||||||
</entry>
|
</entry>
|
||||||
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
||||||
</feed>
|
</feed>
|
Loading…
Reference in New Issue
Block a user