Changeset 1145
- Timestamp:
- 04/24/2004 08:12:58 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-rdf.php
r1121 r1145 5 5 require('wp-blog-header.php'); 6 6 } 7 $more = 1; 7 8 8 9 header('Content-type: application/rss+xml', true); … … 45 46 <dc:creator><?php the_author() ?> (mailto:<?php the_author_email() ?>)</dc:creator> 46 47 <?php the_category_rss('rdf') ?> 47 <?php $more = 1; if (get_settings('rss_use_excerpt')) { 48 ?> 48 <?php if (get_settings('rss_use_excerpt')) : ?> 49 49 <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description> 50 <?php 51 } else { // use content 52 ?> 50 <?php else : ?> 53 51 <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description> 54 <?php55 } // end else use content56 ?>57 52 <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded> 53 <?php endif; ?> 54 58 55 </item> 59 56 <?php } } ?> -
trunk/wp-rss2.php
r1112 r1145 5 5 require('wp-blog-header.php'); 6 6 } 7 7 $more = 1; 8 8 $charset = get_settings('blog_charset'); 9 9 if (!$charset) $charset = 'UTF-8'; 10 header('Content-type: application/rss+xml', true);10 header('Content-type: text/xml', true); 11 11 12 12 ?> … … 34 34 <?php the_category_rss() ?> 35 35 <guid><?php the_permalink($id); ?></guid> 36 <?php $more = 1; if (get_settings('rss_use_excerpt')) { 37 ?> 36 <?php if (get_settings('rss_use_excerpt')) : ?> 38 37 <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description> 39 <?php 40 } else { // use content 41 ?> 38 <?php else : ?> 42 39 <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description> 43 <?php44 } // end else use content45 ?>46 40 <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded> 41 <?php endif; ?> 42 47 43 </item> 48 44 <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
Note: See TracChangeset
for help on using the changeset viewer.