Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better handling of excerpts vs full posts
git-svn-id: http://svn.automattic.com/wordpress/trunk@2586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
matt committed May 6, 2005
1 parent 9f33ee8 commit eb60eaa
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions wp-atom.php
Expand Up @@ -34,16 +34,10 @@
<id><?php the_guid(); ?></id>
<modified><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></modified>
<issued><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></issued>
<?php the_category_rss('rdf') ?>
<?php the_category_rss('rdf') ?>
<summary type="<?php bloginfo('html_type'); ?>" mode="escaped"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
<?php if (!get_settings('rss_use_excerpt')) : ?>
<?php if ( strlen( $post->post_content ) ) : ?>
<?php if ( !get_settings('rss_use_excerpt') ) : ?>
<content type="<?php bloginfo('html_type'); ?>" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
<?php else : ?>
<content type="<?php bloginfo('html_type'); ?>" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></content>
<?php endif; ?>
<?php else : ?>
<content type="<?php bloginfo('html_type'); ?>" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss() ?>]]></content>
<?php endif; ?>
<?php rss_enclosure(); ?>
</entry>
Expand Down

0 comments on commit eb60eaa

Please sign in to comment.