Changeset 2586

Show
Ignore:
Timestamp:
05/06/05 23:56:45 (3 years ago)
Author:
matt
Message:

Better handling of excerpts vs full posts

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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(); ?>