Changeset 6414

Show
Ignore:
Timestamp:
12/19/07 18:25:22 (9 months ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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