Changeset 47122 for trunk/src/wp-includes/feed-rss2.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/feed-rss2.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/feed-rss2.php
r45247 r47122 90 90 <link><?php the_permalink_rss(); ?></link> 91 91 <?php if ( get_comments_number() || comments_open() ) : ?> 92 <comments><?php comments_link_feed(); ?></comments>92 <comments><?php comments_link_feed(); ?></comments> 93 93 <?php endif; ?> 94 95 <dc:creator><![CDATA[<?php the_author(); ?>]]></dc:creator> 94 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 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 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 102 <?php else : ?> 102 <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>103 <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description> 103 104 <?php $content = get_the_content_feed( 'rss2' ); ?> 104 105 <?php if ( strlen( $content ) > 0 ) : ?> 105 <content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>106 <?php else : ?>107 <content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded>108 <?php endif; ?>106 <content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded> 107 <?php else : ?> 108 <content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded> 109 <?php endif; ?> 109 110 <?php endif; ?> 111 110 112 <?php if ( get_comments_number() || comments_open() ) : ?> 111 <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>113 <wfw:commentRss><?php echo esc_url( get_post_comments_feed_link( null, 'rss2' ) ); ?></wfw:commentRss> 114 <slash:comments><?php echo get_comments_number(); ?></slash:comments> 113 115 <?php endif; ?> 116 114 117 <?php rss_enclosure(); ?> 118 115 119 <?php 116 120 /**
Note: See TracChangeset
for help on using the changeset viewer.