Changeset 956 for trunk/wp-rss.php
- Timestamp:
- 03/01/2004 06:13:32 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-rss.php
r836 r956 23 23 */ 24 24 25 if (!isset($rss_language)) { $rss_language = 'en'; }26 if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; }27 if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_length = 0; }28 25 ?> 29 26 <?php echo "<?xml version=\"1.0\"?".">"; ?> … … 38 35 <managingEditor><?php echo antispambot($admin_email) ?></managingEditor> 39 36 <webMaster><?php echo antispambot($admin_email) ?></webMaster> 40 <language><?php echo $rss_language?></language>37 <language><?php echo get_settings('rss_language'); ?></language> 41 38 42 39 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?> … … 48 45 // echo "<category>"; the_category_unicode(); echo "</category>"; 49 46 $more = 1; 50 if ( $rss_use_excerpt) {47 if (get_settings('rss_use_excerpt')) { 51 48 ?> 52 <description><?php the_excerpt_rss( $rss_excerpt_length, $rss_encoded_html) ?></description>49 <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), get_settings('rss_encoded_html')) ?></description> 53 50 <?php 54 51 } else { // use content 55 52 ?> 56 <description><?php the_content_rss('', 0, '', $rss_excerpt_length, $rss_encoded_html) ?></description>53 <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), get_settings('rss_encoded_html')) ?></description> 57 54 <?php 58 55 } // end else use content … … 60 57 <link><?php permalink_single_rss() ?></link> 61 58 </item> 62 <?php $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?>59 <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?> 63 60 </channel> 64 61 </rss>
Note: See TracChangeset
for help on using the changeset viewer.