wp/wp-includes/feed-rss2.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
    87 		?>
    87 		?>
    88 	<item>
    88 	<item>
    89 		<title><?php the_title_rss(); ?></title>
    89 		<title><?php the_title_rss(); ?></title>
    90 		<link><?php the_permalink_rss(); ?></link>
    90 		<link><?php the_permalink_rss(); ?></link>
    91 		<?php if ( get_comments_number() || comments_open() ) : ?>
    91 		<?php if ( get_comments_number() || comments_open() ) : ?>
    92 		<comments><?php comments_link_feed(); ?></comments>
    92 			<comments><?php comments_link_feed(); ?></comments>
    93 		<?php endif; ?>
    93 		<?php endif; ?>
       
    94 
       
    95 		<dc:creator><![CDATA[<?php the_author(); ?>]]></dc:creator>
    94 		<pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
    96 		<pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
    95 		<dc:creator><![CDATA[<?php the_author(); ?>]]></dc:creator>
       
    96 		<?php the_category_rss( 'rss2' ); ?>
    97 		<?php the_category_rss( 'rss2' ); ?>
       
    98 		<guid isPermaLink="false"><?php the_guid(); ?></guid>
    97 
    99 
    98 		<guid isPermaLink="false"><?php the_guid(); ?></guid>
       
    99 		<?php if ( get_option( 'rss_use_excerpt' ) ) : ?>
   100 		<?php if ( get_option( 'rss_use_excerpt' ) ) : ?>
   100 		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
   101 			<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
   101 		<?php else : ?>
   102 		<?php else : ?>
   102 		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
   103 			<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
   103 			<?php $content = get_the_content_feed( 'rss2' ); ?>
   104 			<?php $content = get_the_content_feed( 'rss2' ); ?>
   104 			<?php if ( strlen( $content ) > 0 ) : ?>
   105 			<?php if ( strlen( $content ) > 0 ) : ?>
   105 		<content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>
   106 				<content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>
   106 	<?php else : ?>
   107 			<?php else : ?>
   107 		<content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded>
   108 				<content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded>
   108 	<?php endif; ?>
   109 			<?php endif; ?>
   109 		<?php endif; ?>
   110 		<?php endif; ?>
       
   111 
   110 		<?php if ( get_comments_number() || comments_open() ) : ?>
   112 		<?php if ( get_comments_number() || comments_open() ) : ?>
   111 		<wfw:commentRss><?php echo esc_url( get_post_comments_feed_link( null, 'rss2' ) ); ?></wfw:commentRss>
   113 			<wfw:commentRss><?php echo esc_url( get_post_comments_feed_link( null, 'rss2' ) ); ?></wfw:commentRss>
   112 		<slash:comments><?php echo get_comments_number(); ?></slash:comments>
   114 			<slash:comments><?php echo get_comments_number(); ?></slash:comments>
   113 		<?php endif; ?>
   115 		<?php endif; ?>
       
   116 
   114 		<?php rss_enclosure(); ?>
   117 		<?php rss_enclosure(); ?>
       
   118 
   115 		<?php
   119 		<?php
   116 		/**
   120 		/**
   117 		 * Fires at the end of each RSS2 feed item.
   121 		 * Fires at the end of each RSS2 feed item.
   118 		 *
   122 		 *
   119 		 * @since 2.0.0
   123 		 * @since 2.0.0