X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..16e7b37c7914d753890c1a05a9335f3b43751eb8:/wp-includes/feed-rss2.php diff --git a/wp-includes/feed-rss2.php b/wp-includes/feed-rss2.php index 3274583d..a7b9ac7e 100644 --- a/wp-includes/feed-rss2.php +++ b/wp-includes/feed-rss2.php @@ -5,52 +5,119 @@ * @package WordPress */ -header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); +header('Content-Type: ' . feed_content_type('rss2') . '; charset=' . get_option('blog_charset'), true); $more = 1; -?> -'; ?> +echo ''; +/** + * Fires between the xml and rss tags in a feed. + * + * @since 4.0.0 + * + * @param string $context Type of feed. Possible values include 'rss2', 'rss2-comments', + * 'rdf', 'atom', and 'atom-comments'. + */ +do_action( 'rss_tag_pre', 'rss2' ); +?> + xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" + xmlns:slash="http://purl.org/rss/1.0/modules/slash/" + > - <?php bloginfo_rss('name'); wp_title_rss(); ?> + <?php wp_title_rss(); ?> - - - - - + + + + + <?php the_title_rss() ?> - + + + - - + ]]> + - ]]> + ]]> - ]]> - post_content ) > 0 ) : ?> - ]]> + ]]> + + 0 ) : ?> + ]]> - ]]> + ]]> - + + + + - +