Make WordPress Core

Ticket #34259: 34259.diff

File 34259.diff, 888 bytes (added by johnbillion, 10 years ago)
  • src/wp-includes/functions.php

     
    11601160        /**
    11611161         * Fires once the given feed is loaded.
    11621162         *
    1163          * The dynamic hook name, $hook, refers to the feed name.
     1163         * The dynamic portion of the hook name, $feed, refers to the feed name. Possible values
     1164         * include: 'rdf', 'rss', 'rss2', and 'atom'.
    11641165         *
    11651166         * @since 2.1.0
     1167         * @since 4.4.0 The `$feed` parameter was added.
    11661168         *
    1167          * @param bool $is_comment_feed Whether the feed is a comment feed.
     1169         * @param bool   $is_comment_feed Whether the feed is a comment feed.
     1170         * @param string $feed            The feed name.
    11681171         */
    1169         do_action( $hook, $wp_query->is_comment_feed );
     1172        do_action( "do_feed_{$feed}", $wp_query->is_comment_feed, $feed );
    11701173}
    11711174
    11721175/**