Changeset 43571 for trunk/src/wp-includes/feed-rss2.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/feed-rss2.php
r42343 r43571 90 90 while ( have_posts() ) : 91 91 the_post(); 92 ?>92 ?> 93 93 <item> 94 94 <title><?php the_title_rss(); ?></title> 95 95 <link><?php the_permalink_rss(); ?></link> 96 <?php if ( get_comments_number() || comments_open() ) : ?>96 <?php if ( get_comments_number() || comments_open() ) : ?> 97 97 <comments><?php comments_link_feed(); ?></comments> 98 <?php endif; ?>98 <?php endif; ?> 99 99 <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate> 100 100 <dc:creator><![CDATA[<?php the_author(); ?>]]></dc:creator> … … 102 102 103 103 <guid isPermaLink="false"><?php the_guid(); ?></guid> 104 <?php if ( get_option( 'rss_use_excerpt' ) ) : ?>104 <?php if ( get_option( 'rss_use_excerpt' ) ) : ?> 105 105 <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description> 106 <?php else : ?>106 <?php else : ?> 107 107 <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description> 108 <?php $content = get_the_content_feed( 'rss2' ); ?>109 <?php if ( strlen( $content ) > 0 ) : ?>108 <?php $content = get_the_content_feed( 'rss2' ); ?> 109 <?php if ( strlen( $content ) > 0 ) : ?> 110 110 <content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded> 111 111 <?php else : ?> 112 112 <content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded> 113 113 <?php endif; ?> 114 <?php endif; ?>115 <?php if ( get_comments_number() || comments_open() ) : ?>114 <?php endif; ?> 115 <?php if ( get_comments_number() || comments_open() ) : ?> 116 116 <wfw:commentRss><?php echo esc_url( get_post_comments_feed_link( null, 'rss2' ) ); ?></wfw:commentRss> 117 117 <slash:comments><?php echo get_comments_number(); ?></slash:comments> 118 <?php endif; ?>119 <?php rss_enclosure(); ?>120 <?php121 /**122 * Fires at the end of each RSS2 feed item.123 *124 * @since 2.0.0125 */126 do_action( 'rss2_item' );127 ?>118 <?php endif; ?> 119 <?php rss_enclosure(); ?> 120 <?php 121 /** 122 * Fires at the end of each RSS2 feed item. 123 * 124 * @since 2.0.0 125 */ 126 do_action( 'rss2_item' ); 127 ?> 128 128 </item> 129 129 <?php endwhile; ?>
Note: See TracChangeset
for help on using the changeset viewer.