-<?php atom_enclosure(); ?>
-<?php do_action('atom_entry'); ?>
- <link rel="replies" type="text/html" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/>
- <link rel="replies" type="application/atom+xml" href="<?php echo get_post_comments_feed_link(0,'atom') ?>" thr:count="<?php echo get_comments_number()?>"/>
+ <?php atom_enclosure();
+ /**
+ * Fires at the end of each Atom feed item.
+ *
+ * @since 2.0.0
+ */
+ do_action( 'atom_entry' );
+ ?>
+ <link rel="replies" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/>
+ <link rel="replies" type="application/atom+xml" href="<?php echo esc_url( get_post_comments_feed_link(0, 'atom') ); ?>" thr:count="<?php echo get_comments_number()?>"/>