Make WordPress Core

Ticket #21305: feed-atom.diff

File feed-atom.diff, 1.7 KB (added by niallkennedy, 12 years ago)

html_type instead of text/html

  • wp-includes/feed-atom.php

     
    2121
    2222        <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated>
    2323
    24         <link rel="alternate" type="text/html" href="<?php bloginfo_rss('url') ?>" />
     24        <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('url') ?>" />
    2525        <id><?php bloginfo('atom_url'); ?></id>
    2626        <link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" />
    2727
     
    3636                        do_action('atom_author'); ?>
    3737                </author>
    3838                <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
    39                 <link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" />
     39                <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>" />
    4040                <id><?php the_guid() ; ?></id>
    4141                <updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
    4242                <published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
     
    4747<?php endif; ?>
    4848<?php atom_enclosure(); ?>
    4949<?php do_action('atom_entry'); ?>
    50                 <link rel="replies" type="text/html" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/>
     50                <link rel="replies" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/>
    5151                <link rel="replies" type="application/atom+xml" href="<?php echo get_post_comments_feed_link(0,'atom') ?>" thr:count="<?php echo get_comments_number()?>"/>
    5252                <thr:total><?php echo get_comments_number()?></thr:total>
    5353        </entry>