WordPress.org

Make WordPress Core

Ticket #3377: wp-atom.php.patch

File wp-atom.php.patch, 795 bytes (added by link92, 11 years ago)

Change the MIME type of the <summary> to bloginfo('html_type') - patch should apply against 2.1 and 2.0

  • wp-atom.php

     
    3434                <modified><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></modified>
    3535                <issued><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></issued>
    3636                <?php the_category_rss('rdf') ?>
    37                 <summary type="text/plain" mode="escaped"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
     37                <summary type="<?php bloginfo('html_type'); ?>" mode="escaped"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
    3838<?php if ( !get_option('rss_use_excerpt') ) : ?>
    3939                <content type="<?php bloginfo('html_type'); ?>" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
    4040<?php endif; ?>