mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-21 03:34:28 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@35097 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user