Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comment_atom_entry

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
74      // Return comment threading information (http://www.ietf.org/rfc/rfc4685.txt)
75      if ( $comment->comment_parent == 0 ) : // This comment is top level ?>
76           <thr:in-reply-to ref="<?php the_guid(); ?>" href="<?php the_permalink_rss() ?>" type="<?php bloginfo_rss('html_type'); ?>" />
77 <?php else : // This comment is in reply to another comment
78      $parent_comment = get_comment($comment->comment_parent);
79      // 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
80 ?>
81           <thr:in-reply-to ref="<?php comment_guid($parent_comment) ?>" href="<?php echo get_comment_link($parent_comment) ?>" type="<?php bloginfo_rss('html_type'); ?>" />
82 <?php endif;
83      do_action('comment_atom_entry', $comment->comment_ID, $comment_post->ID);
84 ?>
85      </entry>
86 <?php endwhile; endif; ?>
87 </feed>
88