Changeset 956 for trunk/wp-rss2.php
- Timestamp:
- 03/01/2004 06:13:32 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-rss2.php
r901 r956 22 22 */ 23 23 24 if (!isset($rss_language)) { $rss_language = 'en'; }25 if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; }26 if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_length = 0; }27 24 ?> 28 25 <?php echo '<?xml version="1.0"?'.'>'; ?> … … 49 46 <?php the_category_rss() ?> 50 47 <guid isPermaLink="false"><?php echo $id; ?>@<?php bloginfo_rss("url") ?></guid> 51 <?php $more = 1; if ( $rss_use_excerpt) {48 <?php $more = 1; if (get_settings('rss_use_excerpt')) { 52 49 ?> 53 <description><?php the_excerpt_rss( $rss_excerpt_length, 2) ?></description>50 <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description> 54 51 <?php 55 52 } else { // use content 56 53 ?> 57 <description><?php the_content_rss('', 0, '', $rss_excerpt_length, 2) ?></description>54 <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description> 58 55 <?php 59 56 } // end else use content … … 61 58 <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded> 62 59 </item> 63 <?php $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?>60 <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?> 64 61 </channel> 65 62 </rss>
Note: See TracChangeset
for help on using the changeset viewer.