equal
deleted
inserted
replaced
3 * RSS 0.92 Feed Template for displaying RSS 0.92 Posts feed. |
3 * RSS 0.92 Feed Template for displaying RSS 0.92 Posts feed. |
4 * |
4 * |
5 * @package WordPress |
5 * @package WordPress |
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 $more = 1; |
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 <rss version="0.92"> |
12 <rss version="0.92"> |
13 <channel> |
13 <channel> |
14 <title><?php wp_title_rss(); ?></title> |
14 <title><?php wp_title_rss(); ?></title> |
15 <link><?php bloginfo_rss('url') ?></link> |
15 <link><?php bloginfo_rss( 'url' ); ?></link> |
16 <description><?php bloginfo_rss('description') ?></description> |
16 <description><?php bloginfo_rss( 'description' ); ?></description> |
17 <lastBuildDate><?php |
17 <lastBuildDate><?php echo get_feed_build_date( 'D, d M Y H:i:s +0000' ); ?></lastBuildDate> |
18 $date = get_lastpostmodified( 'GMT' ); |
|
19 echo $date ? mysql2date( 'D, d M Y H:i:s +0000', $date ) : date( 'D, d M Y H:i:s +0000' ); |
|
20 ?></lastBuildDate> |
|
21 <docs>http://backend.userland.com/rss092</docs> |
18 <docs>http://backend.userland.com/rss092</docs> |
22 <language><?php bloginfo_rss( 'language' ); ?></language> |
19 <language><?php bloginfo_rss( 'language' ); ?></language> |
23 |
20 |
24 <?php |
21 <?php |
25 /** |
22 /** |
28 * @since 2.0.0 |
25 * @since 2.0.0 |
29 */ |
26 */ |
30 do_action( 'rss_head' ); |
27 do_action( 'rss_head' ); |
31 ?> |
28 ?> |
32 |
29 |
33 <?php while (have_posts()) : the_post(); ?> |
30 <?php |
|
31 while ( have_posts() ) : |
|
32 the_post(); |
|
33 ?> |
34 <item> |
34 <item> |
35 <title><?php the_title_rss() ?></title> |
35 <title><?php the_title_rss(); ?></title> |
36 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> |
36 <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description> |
37 <link><?php the_permalink_rss() ?></link> |
37 <link><?php the_permalink_rss(); ?></link> |
38 <?php |
38 <?php |
39 /** |
39 /** |
40 * Fires at the end of each RSS feed item. |
40 * Fires at the end of each RSS feed item. |
41 * |
41 * |
42 * @since 2.0.0 |
42 * @since 2.0.0 |