wp/wp-includes/feed-rss2.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
--- a/wp/wp-includes/feed-rss2.php	Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-includes/feed-rss2.php	Tue Dec 15 13:49:49 2020 +0100
@@ -89,29 +89,33 @@
 		<title><?php the_title_rss(); ?></title>
 		<link><?php the_permalink_rss(); ?></link>
 		<?php if ( get_comments_number() || comments_open() ) : ?>
-		<comments><?php comments_link_feed(); ?></comments>
+			<comments><?php comments_link_feed(); ?></comments>
 		<?php endif; ?>
-		<pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
-		<dc:creator><![CDATA[<?php the_author(); ?>]]></dc:creator>
-		<?php the_category_rss( 'rss2' ); ?>
 
+		<dc:creator><![CDATA[<?php the_author(); ?>]]></dc:creator>
+		<pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
+		<?php the_category_rss( 'rss2' ); ?>
 		<guid isPermaLink="false"><?php the_guid(); ?></guid>
+
 		<?php if ( get_option( 'rss_use_excerpt' ) ) : ?>
-		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
+			<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
 		<?php else : ?>
-		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
+			<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
 			<?php $content = get_the_content_feed( 'rss2' ); ?>
 			<?php if ( strlen( $content ) > 0 ) : ?>
-		<content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>
-	<?php else : ?>
-		<content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded>
-	<?php endif; ?>
+				<content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>
+			<?php else : ?>
+				<content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded>
+			<?php endif; ?>
 		<?php endif; ?>
+
 		<?php if ( get_comments_number() || comments_open() ) : ?>
-		<wfw:commentRss><?php echo esc_url( get_post_comments_feed_link( null, 'rss2' ) ); ?></wfw:commentRss>
-		<slash:comments><?php echo get_comments_number(); ?></slash:comments>
+			<wfw:commentRss><?php echo esc_url( get_post_comments_feed_link( null, 'rss2' ) ); ?></wfw:commentRss>
+			<slash:comments><?php echo get_comments_number(); ?></slash:comments>
 		<?php endif; ?>
+
 		<?php rss_enclosure(); ?>
+
 		<?php
 		/**
 		 * Fires at the end of each RSS2 feed item.