Make WordPress Core

Ticket #3884: patch.diff

File patch.diff, 2.0 KB (added by joostdevalk, 18 years ago)

Patch.

  • wp-includes/feed-rss2.php

     
    3636<?php else : ?>
    3737                <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    3838        <?php if ( strlen( $post->post_content ) > 0 ) : ?>
    39                 <content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded>
     39                <content:encoded><![CDATA[<?php the_content_rss('', 0, '',0 , 3) ?>]]></content:encoded>
    4040        <?php else : ?>
    4141                <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
    4242        <?php endif; ?>
  • wp-includes/feed-atom.php

     
    3838                <?php the_category_rss('atom') ?>
    3939                <summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
    4040<?php if ( !get_option('rss_use_excerpt') ) : ?>
    41                 <content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
     41                <content type="<?php bloginfo('html_type'); ?>" mode="escaped" xml:base="<?php permalink_single_rss() ?>">
     42                        <![CDATA[<?php the_content_rss('', 0, '',0 , 3) ?>]]>
     43                </content>
    4244<?php endif; ?>
    4345<?php atom_enclosure(); ?>
    4446<?php do_action('atom_entry'); ?>
  • wp-includes/feed-rdf.php

     
    4343        <description><?php the_excerpt_rss() ?></description>
    4444<?php else : ?>
    4545        <description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length'), 2) ?></description>
    46         <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
     46        <content:encoded><![CDATA[<?php the_content_rss('', 0, '',0 , 3) ?>]]></content:encoded>
     47       
    4748<?php endif; ?>
    4849        <?php do_action('rdf_item'); ?>
    4950</item>