X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/11be8dc178e77d0b46189bbd8e33a216a9b90942..48ab98cb1779cf2088c1351ac3dd3d0da6fb31d3:/wp-includes/feed-rss2.php diff --git a/wp-includes/feed-rss2.php b/wp-includes/feed-rss2.php index 77e17d54..f7da5f2a 100644 --- a/wp-includes/feed-rss2.php +++ b/wp-includes/feed-rss2.php @@ -5,19 +5,36 @@ * @package WordPress */ -header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); +header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); $more = 1; -?> -'; ?> +echo ''; +/** + * Fires between the and 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:slash="http://purl.org/rss/1.0/modules/slash/" + > @@ -25,35 +42,73 @@ $more = 1; - - - - - - - + + + + + + + <?php the_title_rss() ?> - + - - + ]]> + - ]]> + ]]> - ]]> - post_content ) > 0 ) : ?> - ]]> + ]]> + + 0 ) : ?> + ]]> - ]]> + ]]> - + + - +