WordPress.org

Make WordPress Core

Changeset 35115


Ignore:
Timestamp:
10/13/2015 02:43:30 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Feeds: Pass the feed name to do_feed_{$feed} action.

Props johnbillion.
See #34259.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r35098 r35115  
    11701170     *
    11711171     * @since 2.1.0
    1172      *
    1173      * @param bool $is_comment_feed Whether the feed is a comment feed.
     1172     * @since 4.4.0 The `$feed` parameter was added.
     1173     *
     1174     * @param bool   $is_comment_feed Whether the feed is a comment feed.
     1175     * @param string $feed            The feed name.
    11741176     */
    1175     do_action( "do_feed_{$feed}", $wp_query->is_comment_feed );
     1177    do_action( "do_feed_{$feed}", $wp_query->is_comment_feed, $feed );
    11761178}
    11771179
Note: See TracChangeset for help on using the changeset viewer.