Ticket #6783: 6783_feed_rss2.diff
| File 6783_feed_rss2.diff, 2.2 KB (added by hailin, 5 years ago) |
|---|
-
C:/xampp/htdocs/wordpress_trunk/wp-includes/feed-rss2.php
28 28 <?php the_generator( 'rss2' ); ?> 29 29 <language><?php echo get_option('rss_language'); ?></language> 30 30 <?php do_action('rss2_head'); ?> 31 31 32 <?php while( have_posts()) : the_post(); ?> 33 32 34 <item> 33 35 <title><?php the_title_rss() ?></title> 34 36 <link><?php the_permalink_rss() ?></link> … … 36 38 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate> 37 39 <dc:creator><?php the_author() ?></dc:creator> 38 40 <?php the_category_rss() ?> 41 <guid isPermaLink="false"><?php the_guid(); ?></guid> 42 43 <?php if (get_option('rss_use_excerpt')) : ?> 44 45 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> 46 47 <?php else : ?> 48 49 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> 50 51 <?php if ( strlen( $post->post_content ) > 0 ) : ?> 52 <content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded> 53 <?php else : ?> 54 <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded> 55 <?php endif; ?> 56 57 <?php endif; ?> 39 58 40 <guid isPermaLink="false"><?php the_guid(); ?></guid>41 <?php if (get_option('rss_use_excerpt')) : ?>42 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>43 <?php else : ?>44 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>45 <?php if ( strlen( $post->post_content ) > 0 ) : ?>46 <content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded>47 <?php else : ?>48 <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>49 <?php endif; ?>50 <?php endif; ?>51 59 <wfw:commentRss><?php echo get_post_comments_feed_link(); ?></wfw:commentRss> 52 <?php rss_enclosure(); ?> 53 <?php do_action('rss2_item'); ?> 60 61 <?php 62 rss_enclosure(); 63 64 $parsed_content = apply_filters('the_content_rss', $post->post_content ); 65 do_action('rss2_item', $parsed_content); 66 ?> 67 54 68 </item> 69 55 70 <?php endwhile; ?> 71 56 72 </channel> 57 73 </rss> 74
