Changeset 42343 for trunk/src/wp-includes/feed-rss.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/feed-rss.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/feed-rss.php
r38925 r42343 6 6 */ 7 7 8 header( 'Content-Type: ' . feed_content_type('rss') . '; charset=' . get_option('blog_charset'), true);8 header( 'Content-Type: ' . feed_content_type( 'rss' ) . '; charset=' . get_option( 'blog_charset' ), true ); 9 9 $more = 1; 10 10 11 echo '<?xml version="1.0" encoding="' .get_option('blog_charset').'"?'.'>'; ?>11 echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?> 12 12 <rss version="0.92"> 13 13 <channel> 14 14 <title><?php wp_title_rss(); ?></title> 15 <link><?php bloginfo_rss('url') ?></link> 16 <description><?php bloginfo_rss('description') ?></description> 17 <lastBuildDate><?php 15 <link><?php bloginfo_rss( 'url' ); ?></link> 16 <description><?php bloginfo_rss( 'description' ); ?></description> 17 <lastBuildDate> 18 <?php 18 19 $date = get_lastpostmodified( 'GMT' ); 19 20 echo $date ? mysql2date( 'D, d M Y H:i:s +0000', $date ) : date( 'D, d M Y H:i:s +0000' ); 20 ?></lastBuildDate> 21 ?> 22 </lastBuildDate> 21 23 <docs>http://backend.userland.com/rss092</docs> 22 24 <language><?php bloginfo_rss( 'language' ); ?></language> … … 31 33 ?> 32 34 33 <?php while (have_posts()) : the_post(); ?> 35 <?php 36 while ( have_posts() ) : 37 the_post(); 38 ?> 34 39 <item> 35 <title><?php the_title_rss() ?></title>36 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>37 <link><?php the_permalink_rss() ?></link>40 <title><?php the_title_rss(); ?></title> 41 <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description> 42 <link><?php the_permalink_rss(); ?></link> 38 43 <?php 39 44 /**
Note: See TracChangeset
for help on using the changeset viewer.