Make WordPress Core

Ticket #34264: 34264.diff

File 34264.diff, 707 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, $hook, refers to the feed name. Possible values
     1164         * include: 'rdf', 'rss', 'rss2', and 'atom'.
    11641165         *
    11651166         * @since 2.1.0
    11661167         *
    11671168         * @param bool $is_comment_feed Whether the feed is a comment feed.
    11681169         */
    1169         do_action( $hook, $wp_query->is_comment_feed );
     1170        do_action( "do_feed_{$feed}", $wp_query->is_comment_feed );
    11701171}
    11711172
    11721173/**