WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/19/2007 03:42:30 PM (13 years ago)
Author:
westi
Message:

Refactor atom support to share code. Fixes #5181 props rubys

File:
1 edited

Legend:

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

    r6195 r6273  
    3131            <?php endif; ?>
    3232        </author>
    33         <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
     33<?php list($content_type, $content) = prep_atom_text_construct(get_the_title()); ?>
     34            <title type="<?php echo $content_type ?>"><?php echo $content ?></title>
    3435        <link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" />
    3536        <id><?php the_guid(); ?></id>
     
    3738        <published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
    3839        <?php the_category_rss('atom') ?>
    39         <summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
     40<?php list($content_type, $content) = prep_atom_text_construct(get_the_excerpt()); ?>
     41            <summary type="<?php echo $content_type ?>"><?php echo $content ?></summary>
    4042<?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>
     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>
    4245<?php endif; ?>
    4346<?php atom_enclosure(); ?>
Note: See TracChangeset for help on using the changeset viewer.