PageRenderTime 51ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-includes/feed-rss.php

https://bitbucket.org/aqge/deptandashboard
PHP | 31 lines | 23 code | 3 blank | 5 comment | 1 complexity | 81f16e259608055c20c01766e22fc48a MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.1
  1. <?php
  2. /**
  3. * RSS 0.92 Feed Template for displaying RSS 0.92 Posts feed.
  4. *
  5. * @package WordPress
  6. */
  7. header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
  8. $more = 1;
  9. echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
  10. <rss version="0.92">
  11. <channel>
  12. <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
  13. <link><?php bloginfo_rss('url') ?></link>
  14. <description><?php bloginfo_rss('description') ?></description>
  15. <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
  16. <docs>http://backend.userland.com/rss092</docs>
  17. <language><?php echo get_option('rss_language'); ?></language>
  18. <?php do_action('rss_head'); ?>
  19. <?php while (have_posts()) : the_post(); ?>
  20. <item>
  21. <title><?php the_title_rss() ?></title>
  22. <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
  23. <link><?php the_permalink_rss() ?></link>
  24. <?php do_action('rss_item'); ?>
  25. </item>
  26. <?php endwhile; ?>
  27. </channel>
  28. </rss>