Make WordPress Core

Ticket #5307: backout.patch

File backout.patch, 1.6 KB (added by rubys, 18 years ago)
  • wp-includes/feed-atom.php

     
    3030                        <uri><?php the_author_url()?></uri>
    3131                        <?php endif; ?>
    3232                </author>
    33 <?php list($content_type, $content) = prep_atom_text_construct(get_the_title()); ?>
    34                 <title type="<?php echo $content_type ?>"><?php echo $content ?></title>
     33                <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
    3534                <link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" />
    3635                <id><?php the_guid(); ?></id>
    3736                <updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
    3837                <published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
    3938                <?php the_category_rss('atom') ?>
    40 <?php list($content_type, $content) = prep_atom_text_construct(get_the_excerpt()); ?>
    41                 <summary type="<?php echo $content_type ?>"><?php echo $content ?></summary>
     39                <summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
    4240<?php if ( !get_option('rss_use_excerpt') ) : ?>
    43 <?php list($content_type, $content) = prep_atom_text_construct(get_the_content()); ?>
    44                 <content type="<?php echo $content_type ?>" xml:base="<?php the_permalink_rss()?>"><?php echo $content ?></content>
     41                <content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
    4542<?php endif; ?>
    4643<?php atom_enclosure(); ?>
    4744<?php do_action('atom_entry'); ?>