aboutsummaryrefslogtreecommitdiff
path: root/srcs/wordpress/wp-includes/feed-rss.php
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-07 13:06:14 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-07 13:06:14 +0100
commit7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8 (patch)
treef7453d7dd5cbaaab246e23810b02d3edf1e451be /srcs/wordpress/wp-includes/feed-rss.php
parentc59bdcf77c50cbe89b4a93782cdd6d9e7532080e (diff)
downloadft_server-7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8.tar.gz
ft_server-7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8.tar.bz2
ft_server-7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8.zip
Added wordpress
Diffstat (limited to 'srcs/wordpress/wp-includes/feed-rss.php')
-rw-r--r--srcs/wordpress/wp-includes/feed-rss.php49
1 files changed, 49 insertions, 0 deletions
diff --git a/srcs/wordpress/wp-includes/feed-rss.php b/srcs/wordpress/wp-includes/feed-rss.php
new file mode 100644
index 0000000..0b58d5f
--- /dev/null
+++ b/srcs/wordpress/wp-includes/feed-rss.php
@@ -0,0 +1,49 @@
+<?php
+/**
+ * RSS 0.92 Feed Template for displaying RSS 0.92 Posts feed.
+ *
+ * @package WordPress
+ */
+
+header( 'Content-Type: ' . feed_content_type( 'rss' ) . '; charset=' . get_option( 'blog_charset' ), true );
+$more = 1;
+
+echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?>
+<rss version="0.92">
+<channel>
+ <title><?php wp_title_rss(); ?></title>
+ <link><?php bloginfo_rss( 'url' ); ?></link>
+ <description><?php bloginfo_rss( 'description' ); ?></description>
+ <lastBuildDate><?php echo get_feed_build_date( 'D, d M Y H:i:s +0000' ); ?></lastBuildDate>
+ <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' );
+ ?>
+
+<?php
+while ( have_posts() ) :
+ the_post();
+ ?>
+ <item>
+ <title><?php the_title_rss(); ?></title>
+ <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
+ <link><?php the_permalink_rss(); ?></link>
+ <?php
+ /**
+ * Fires at the end of each RSS feed item.
+ *
+ * @since 2.0.0
+ */
+ do_action( 'rss_item' );
+ ?>
+ </item>
+<?php endwhile; ?>
+</channel>
+</rss>