Feeds: Pass the feed name to do_feed_{$feed}
action.
Props johnbillion. See #34259. git-svn-id: https://develop.svn.wordpress.org/trunk@35115 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4c0b89553a
commit
4a2184d00c
@ -1169,10 +1169,12 @@ function do_feed() {
|
||||
* Possible values include: 'rdf', 'rss', 'rss2', and 'atom'.
|
||||
*
|
||||
* @since 2.1.0
|
||||
* @since 4.4.0 The `$feed` parameter was added.
|
||||
*
|
||||
* @param bool $is_comment_feed Whether the feed is a comment feed.
|
||||
* @param bool $is_comment_feed Whether the feed is a comment feed.
|
||||
* @param string $feed The feed name.
|
||||
*/
|
||||
do_action( "do_feed_{$feed}", $wp_query->is_comment_feed );
|
||||
do_action( "do_feed_{$feed}", $wp_query->is_comment_feed, $feed );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user