Make WordPress Core

Changeset 2586


Ignore:
Timestamp:
05/06/2005 11:56:45 PM (20 years ago)
Author:
matt
Message:

Better handling of excerpts vs full posts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-atom.php

    r2388 r2586  
    3535        <modified><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></modified>
    3636        <issued><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></issued>
    37         <?php the_category_rss('rdf') ?>
     37        <?php the_category_rss('rdf') ?> 
    3838        <summary type="<?php bloginfo('html_type'); ?>" mode="escaped"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
    39 <?php if (!get_settings('rss_use_excerpt')) : ?>
    40     <?php if ( strlen( $post->post_content ) ) : ?>
     39<?php if ( !get_settings('rss_use_excerpt') ) : ?>
    4140        <content type="<?php bloginfo('html_type'); ?>" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
    42     <?php else : ?>
    43         <content type="<?php bloginfo('html_type'); ?>" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></content>
    44     <?php endif; ?>
    45 <?php else : ?>
    46         <content type="<?php bloginfo('html_type'); ?>" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss() ?>]]></content>
    4741<?php endif; ?>
    4842<?php rss_enclosure(); ?>
Note: See TracChangeset for help on using the changeset viewer.