<?php // Return comment threading information (https://www.ietf.org/rfc/rfc4685.txt). if ( '0' === $comment->comment_parent ) : // This comment is top-level. ?> <thr:in-reply-to ref="<?php the_guid(); ?>" href="<?php the_permalink_rss(); ?>" type="<?php bloginfo_rss( 'html_type' ); ?>" /> <?php else : // This comment is in reply to another comment. $parent_comment = get_comment( $comment->comment_parent ); /* * The rel attribute below and the id tag above should be GUIDs, * but WP doesn't create them for comments (unlike posts). * Either way, it's more important that they both use the same system. */ ?> <thr:in-reply-to ref="<?php comment_guid( $parent_comment ); ?>" href="<?php echo get_comment_link( $parent_comment ); ?>" type="<?php bloginfo_rss( 'html_type' ); ?>" /> <?php endif;
/** * Fires at the end of each Atom comment feed item. * * @since 2.2.0 * * @param int $comment_id ID of the current comment. * @param int $comment_post_id ID of the post the current comment is connected to. */ do_action( 'comment_atom_entry', $comment->comment_ID, $comment_post->ID ); ?> </entry> <?php endwhile; ?> </feed>