Changeset 1223

Show
Ignore:
Timestamp:
05/05/04 06:32:18 (4 years ago)
Author:
saxmatt
Message:

Minor changes to RSS.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-commentsrss2.php

    r1150 r1223  
    44} 
    55 
    6 header('Content-type: application/rss+xml', true); 
     6header('Content-type: text/xml', true); 
    77 
    88echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>';  
  • trunk/wp-rss.php

    r1216 r1223  
    1414<rss version="0.92"> 
    1515    <channel> 
    16         <title><?php bloginfo_rss("name") ?></title> 
    17         <link><?php bloginfo_rss("url") ?></link> 
    18         <description><?php bloginfo_rss("description") ?></description> 
     16        <title><?php bloginfo_rss('name') ?></title> 
     17        <link><?php bloginfo_rss('url') ?></link> 
     18        <description><?php bloginfo_rss('description') ?></description> 
    1919        <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT')); ?></lastBuildDate> 
    2020        <docs>http://backend.userland.com/rss092</docs> 
     
    3030if (get_settings('rss_use_excerpt')) { 
    3131?> 
    32             <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), get_settings('rss_encoded_html')) ?></description> 
     32            <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description> 
    3333<?php 
    3434} else { // use content 
  • trunk/wp-rss2.php

    r1216 r1223  
    3636        <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description> 
    3737<?php else : ?> 
    38         <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description> 
     38        <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description> 
    3939        <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded> 
    4040<?php endif; ?>