web/wp-includes/feed-rss.php
branchwordpress
changeset 132 4d4862461b8d
parent 109 03b0d1493584
equal deleted inserted replaced
131:a4642baaf829 132:4d4862461b8d
    21 	<?php do_action('rss_head'); ?>
    21 	<?php do_action('rss_head'); ?>
    22 
    22 
    23 <?php while (have_posts()) : the_post(); ?>
    23 <?php while (have_posts()) : the_post(); ?>
    24 	<item>
    24 	<item>
    25 		<title><?php the_title_rss() ?></title>
    25 		<title><?php the_title_rss() ?></title>
    26 <?php if (get_option('rss_use_excerpt')) { ?>
       
    27 		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    26 		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    28 <?php } else { // use content ?>
       
    29 		<description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length')) ?></description>
       
    30 <?php } ?>
       
    31 		<link><?php the_permalink_rss() ?></link>
    27 		<link><?php the_permalink_rss() ?></link>
    32 		<?php do_action('rss_item'); ?>
    28 		<?php do_action('rss_item'); ?>
    33 	</item>
    29 	</item>
    34 <?php endwhile; ?>
    30 <?php endwhile; ?>
    35 </channel>
    31 </channel>