]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/feed-rss2.php
WordPress 4.0-scripts
[autoinstalls/wordpress.git] / wp-includes / feed-rss2.php
index 0ce4e6be51411bb39436786647c88d48a1838c6c..f7da5f2a9af23ecde5ad5684ae1daf9b2aaa073b 100644 (file)
@@ -8,8 +8,18 @@
 header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
 $more = 1;
 
-echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
+echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
 
+/**
+ * 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' );
+?>
 <rss version="2.0"
        xmlns:content="http://purl.org/rss/1.0/modules/content/"
        xmlns:wfw="http://wellformedweb.org/CommentAPI/"