Make WordPress Core

Changeset 1356


Ignore:
Timestamp:
05/24/2004 04:49:19 PM (21 years ago)
Author:
michelvaldrighi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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; } } } ?>
Note: See TracChangeset for help on using the changeset viewer.