Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: commentsrss2_head

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
22                printf(__('Comments for %s searching on %s'), get_bloginfo_rss( 'name' ), attribute_escape($wp_query->query_vars['s']));
23           else
24                printf(__('Comments for %s'), get_bloginfo_rss( 'name' ) . get_wp_title_rss());
25      ?></title>
26      <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
27      <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
28      <description><?php bloginfo_rss("description") ?></description>
29      <pubDate><?php echo gmdate('r'); ?></pubDate>
30      <?php the_generator( 'rss2' ); ?>
31      <?php do_action('commentsrss2_head'); ?>
32 <?php
33 if ( have_comments() ) : while ( have_comments() ) : the_comment();
34      $comment_post = get_post($comment->comment_post_ID);
35      get_post_custom($comment_post->ID);
36 ?>
37      <item>
38           <title><?php
39                if ( !is_singular() ) {
40                     $title = get_the_title($comment_post->ID);