Make WordPress Core

Ticket #5435: fix_atom_comments_metadata.patch

File fix_atom_comments_metadata.patch, 1.0 KB (added by ionfish, 19 years ago)
  • wp-includes/feed-atom-comments.php

     
    1919
    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 the_permalink(); ?>" />
     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
    2834if ( have_comments() ) : while ( have_comments() ) : the_comment();