From c321e400163320e179e1f78255eb9e2f42ba0f86 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 7 Jul 2014 10:18:15 +0000 Subject: [PATCH] Introduce 'rss_tag_pre' action, which fires between the xml and rss tags in a feed. props solarissmoke, wonderboymusic, DrewAPicture. fixes #19017. Built from https://develop.svn.wordpress.org/trunk@29014 git-svn-id: http://core.svn.wordpress.org/trunk@28802 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/feed-atom-comments.php | 11 +++++++---- wp-includes/feed-atom.php | 6 +++++- wp-includes/feed-rdf.php | 6 +++++- wp-includes/feed-rss2-comments.php | 3 +++ wp-includes/feed-rss2.php | 12 +++++++++++- 5 files changed, 31 insertions(+), 7 deletions(-) diff --git a/wp-includes/feed-atom-comments.php b/wp-includes/feed-atom-comments.php index 13a55a206a..d9c8f6529d 100644 --- a/wp-includes/feed-atom-comments.php +++ b/wp-includes/feed-atom-comments.php @@ -7,15 +7,18 @@ header('Content-Type: ' . feed_content_type('atom') . '; charset=' . get_option('blog_charset'), true); echo ''; + +/** This action is documented in wp-includes/feed-rss2.php */ +do_action( 'rss_tag_pre', 'atom-comments' ); ?> ' -'; ?> +echo ''; + +/** This action is documented in wp-includes/feed-rss2.php */ +do_action( 'rss_tag_pre', 'atom' ); +?> '; ?> +echo ''; + +/** This action is documented in wp-includes/feed-rss2.php */ +do_action( 'rss_tag_pre', 'rdf' ); +?> '; + +/** This action is documented in wp-includes/feed-rss2.php */ +do_action( 'rss_tag_pre', 'rss2-comments' ); ?> '; ?> +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' ); +?>