Make WordPress Core

Changeset 21289


Ignore:
Timestamp:
07/20/2012 03:08:45 PM (12 years ago)
Author:
nacin
Message:

Use html_type for alternate link elements in atom feeds, as done in atom comment feeds. props niallkennedy. fixes #21305.

File:
1 edited

Legend:

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

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