wordcamp-bristol-2019/wp-includes/feed-rss.php

50 lines
1.2 KiB
PHP
Raw Normal View History

2019-03-12 09:27:46 +00:00
<?php
/**
* RSS 0.92 Feed Template for displaying RSS 0.92 Posts feed.
*
* @package WordPress
*/
2019-04-16 19:56:22 +00:00
header( 'Content-Type: ' . feed_content_type( 'rss' ) . '; charset=' . get_option( 'blog_charset' ), true );
2019-03-12 09:27:46 +00:00
$more = 1;
2019-04-16 19:56:22 +00:00
echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?>
2019-03-12 09:27:46 +00:00
<rss version="0.92">
<channel>
<title><?php wp_title_rss(); ?></title>
2019-04-16 19:56:22 +00:00
<link><?php bloginfo_rss( 'url' ); ?></link>
<description><?php bloginfo_rss( 'description' ); ?></description>
2019-05-08 07:05:39 +00:00
<lastBuildDate><?php echo get_feed_build_date( 'D, d M Y H:i:s +0000' ); ?></lastBuildDate>
2019-03-12 09:27:46 +00:00
<docs>http://backend.userland.com/rss092</docs>
<language><?php bloginfo_rss( 'language' ); ?></language>
<?php
/**
* Fires at the end of the RSS Feed Header.
*
* @since 2.0.0
*/
do_action( 'rss_head' );
?>
2019-04-16 19:56:22 +00:00
<?php
while ( have_posts() ) :
the_post();
?>
2019-03-12 09:27:46 +00:00
<item>
2019-04-16 19:56:22 +00:00
<title><?php the_title_rss(); ?></title>
<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
<link><?php the_permalink_rss(); ?></link>
2019-03-12 09:27:46 +00:00
<?php
/**
* Fires at the end of each RSS feed item.
*
* @since 2.0.0
*/
do_action( 'rss_item' );
?>
</item>
<?php endwhile; ?>
</channel>
</rss>