Make WordPress Core


Ignore:
Timestamp:
12/19/2007 06:25:22 PM (19 years ago)
Author:
ryan
Message:

Fix id, self link and alternate link in Atom comment feeds. Props ionfish. fixes #5435

File:
1 edited

Legend:

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

    r6195 r6414  
    2020        <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastcommentmodified('GMT')); ?></updated>
    2121        <?php the_generator( 'atom' ); ?>
    22 
     22       
     23<?php if ( is_singular() ) { ?>
     24        <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php echo get_comments_link() ?>" />
     25        <link rel="self" type="application/atom+xml" href="<?php echo get_post_comments_feed_link('', 'atom'); ?>" />
     26        <id><?php echo get_post_comments_feed_link('', 'atom'); ?></id>
     27<?php } else { ?>
    2328        <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('home'); ?>" />
    2429        <link rel="self" type="application/atom+xml" href="<?php bloginfo_rss('comments_atom_url'); ?>" />
    2530        <id><?php bloginfo_rss('comments_atom_url'); ?></id>
     31<?php } ?>
    2632
    2733<?php
Note: See TracChangeset for help on using the changeset viewer.