From b234b5d89600c00ec708b2da62ee329a4fc9d254 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 13 Oct 2015 01:03:25 +0000 Subject: [PATCH] Feeds: Adjust the `do_feed_{$feed}` hook name to actually be dynamic, rather than pre-storing the tag name in a variable and referencing that. Props johnbillion. Fixes #34264. Built from https://develop.svn.wordpress.org/trunk@35097 git-svn-id: http://core.svn.wordpress.org/trunk@35062 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index a617cb0110..b99d9985a0 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1165,13 +1165,14 @@ function do_feed() { /** * Fires once the given feed is loaded. * - * The dynamic hook name, $hook, refers to the feed name. + * The dynamic portion of the hook name, `$feed`, refers to the feed template name. + * Possible values include: 'rdf', 'rss', 'rss2', and 'atom'. * * @since 2.1.0 * * @param bool $is_comment_feed Whether the feed is a comment feed. */ - do_action( $hook, $wp_query->is_comment_feed ); + do_action( "do_feed_{$feed}", $wp_query->is_comment_feed ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 30997f2a05..ea2e7dee45 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35096'; +$wp_version = '4.4-alpha-35097'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.