Better handling of excerpts vs full posts
git-svn-id: https://develop.svn.wordpress.org/trunk@2586 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c0fdcbaa7c
commit
e3cdf255e0
10
wp-atom.php
10
wp-atom.php
@ -34,16 +34,10 @@ $more = 1;
|
||||
<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>
|
||||
|
Loading…
Reference in New Issue
Block a user