wp/wp-includes/feed-rss2-comments.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
     6  */
     6  */
     7 
     7 
     8 header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
     8 header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
     9 
     9 
    10 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
    10 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
       
    11 
       
    12 /** This action is documented in wp-includes/feed-rss2.php */
       
    13 do_action( 'rss_tag_pre', 'rss2-comments' );
    11 ?>
    14 ?>
    12 <rss version="2.0"
    15 <rss version="2.0"
    13 	xmlns:content="http://purl.org/rss/1.0/modules/content/"
    16 	xmlns:content="http://purl.org/rss/1.0/modules/content/"
    14 	xmlns:dc="http://purl.org/dc/elements/1.1/"
    17 	xmlns:dc="http://purl.org/dc/elements/1.1/"
    15 	xmlns:atom="http://www.w3.org/2005/Atom"
    18 	xmlns:atom="http://www.w3.org/2005/Atom"
    39 	?></title>
    42 	?></title>
    40 	<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    43 	<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    41 	<link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
    44 	<link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
    42 	<description><?php bloginfo_rss("description") ?></description>
    45 	<description><?php bloginfo_rss("description") ?></description>
    43 	<lastBuildDate><?php echo mysql2date('r', get_lastcommentmodified('GMT')); ?></lastBuildDate>
    46 	<lastBuildDate><?php echo mysql2date('r', get_lastcommentmodified('GMT')); ?></lastBuildDate>
    44 	<?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
    47 	<sy:updatePeriod><?php
    45 	<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
    48 		/** This filter is documented in wp-includes/feed-rss2.php */
    46 	<?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
    49 		echo apply_filters( 'rss_update_period', 'hourly' );
    47 	<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
    50 	?></sy:updatePeriod>
       
    51 	<sy:updateFrequency><?php
       
    52 		/** This filter is documented in wp-includes/feed-rss2.php */
       
    53 		echo apply_filters( 'rss_update_frequency', '1' );
       
    54 	?></sy:updateFrequency>
    48 	<?php
    55 	<?php
    49 	/**
    56 	/**
    50 	 * Fires at the end of the RSS2 comment feed header.
    57 	 * Fires at the end of the RSS2 comment feed header.
    51 	 *
    58 	 *
    52 	 * @since 2.3.0
    59 	 * @since 2.3.0