Changeset 1356

Show
Ignore:
Timestamp:
05/24/04 16:49:19 (4 years ago)
Author:
michelvaldrighi
Message:

the Atom feed should always provide an excerpt, even in full content mode

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-atom.php

    r1268 r1356  
    77 
    88header('Content-type: application/atom+xml', true); 
     9$more = 1; 
    910 
    1011?> 
     
    3233        <issued><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt); ?></issued> 
    3334        <?php the_category_rss('rdf') ?> 
    34 <?php $more = 1; if (get_settings('rss_use_excerpt')) { ?> 
    3535        <summary type="text/html" mode="escaped"><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></summary> 
    36 <?php } else { // use content ?> 
    37         <summary type="text/html"><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></summary> 
     36<?php if (!get_settings('rss_use_excerpt')) { ?> 
    3837        <content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content> 
    39 <?php } // end else use content ?> 
     38<?php } ?> 
    4039    </entry> 
    4140    <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>