web/wp-includes/feed-rss2-comments.php
changeset 194 32102edaa81b
parent 136 bde1974c263b
child 204 09a1c134465b
equal deleted inserted replaced
193:2f6f6f7551ca 194:32102edaa81b
    27 	?></title>
    27 	?></title>
    28 	<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    28 	<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    29 	<link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
    29 	<link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
    30 	<description><?php bloginfo_rss("description") ?></description>
    30 	<description><?php bloginfo_rss("description") ?></description>
    31 	<lastBuildDate><?php echo mysql2date('r', get_lastcommentmodified('GMT')); ?></lastBuildDate>
    31 	<lastBuildDate><?php echo mysql2date('r', get_lastcommentmodified('GMT')); ?></lastBuildDate>
    32 	<?php the_generator( 'rss2' ); ?>
       
    33 	<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
    32 	<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
    34 	<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
    33 	<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
    35 	<?php do_action('commentsrss2_head'); ?>
    34 	<?php do_action('commentsrss2_head'); ?>
    36 <?php
    35 <?php
    37 if ( have_comments() ) : while ( have_comments() ) : the_comment();
    36 if ( have_comments() ) : while ( have_comments() ) : the_comment();
    38 	$comment_post = get_post($comment->comment_post_ID);
    37 	$comment_post = $GLOBALS['post'] = get_post( $comment->comment_post_ID );
    39 	get_post_custom($comment_post->ID);
       
    40 ?>
    38 ?>
    41 	<item>
    39 	<item>
    42 		<title><?php
    40 		<title><?php
    43 			if ( !is_singular() ) {
    41 			if ( !is_singular() ) {
    44 				$title = get_the_title($comment_post->ID);
    42 				$title = get_the_title($comment_post->ID);