Make WordPress Core

Changeset 6315


Ignore:
Timestamp:
11/06/2007 06:23:16 PM (17 years ago)
Author:
ryan
Message:

Back out some changes from #5181. Props rubys. fixes #5307

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed-atom.php

    r6273 r6315  
    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>
     
    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(); ?>
Note: See TracChangeset for help on using the changeset viewer.