Make WordPress Core

Changeset 1145 for trunk/wp-rdf.php


Ignore:
Timestamp:
04/24/2004 08:12:58 PM (22 years ago)
Author:
saxmatt
Message:

Correctly respect excerpt wishes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-rdf.php

    r1121 r1145  
    55    require('wp-blog-header.php');
    66}
     7$more = 1;
    78
    89header('Content-type: application/rss+xml', true);
     
    4546    <dc:creator><?php the_author() ?> (mailto:<?php the_author_email() ?>)</dc:creator>
    4647    <?php the_category_rss('rdf') ?>
    47 <?php $more = 1; if (get_settings('rss_use_excerpt')) {
    48 ?>
     48<?php if (get_settings('rss_use_excerpt')) : ?>
    4949    <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
    50 <?php
    51 } else { // use content
    52 ?>
     50<?php else : ?>
    5351    <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description>
    54 <?php
    55 } // end else use content
    56 ?>
    5752    <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
     53<?php endif; ?>
     54   
    5855</item>
    5956<?php } }  ?>
Note: See TracChangeset for help on using the changeset viewer.