do_feed_rss2

The timeline below displays how wordpress function do_feed_rss2 has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Loads either the RSS2 comment feed or the RSS2 posts feed.
 *
 * @since 2.1.0
 *
 * @see load_template()
 *
 * @param bool $for_comments True for the comment feed, false for normal feed.
 */
function do_feed_rss2($for_comments)
{
    if ($for_comments) {
        load_template(ABSPATH . WPINC . '/feed-rss2-comments.php');
    } else {
        load_template(ABSPATH . WPINC . '/feed-rss2.php');
    }
}

WordPress Version: 4.0

/**
 * Load either the RSS2 comment feed or the RSS2 posts feed.
 *
 * @since 2.1.0
 *
 * @see load_template()
 *
 * @param bool $for_comments True for the comment feed, false for normal feed.
 */
function do_feed_rss2($for_comments)
{
    if ($for_comments) {
        load_template(ABSPATH . WPINC . '/feed-rss2-comments.php');
    } else {
        load_template(ABSPATH . WPINC . '/feed-rss2.php');
    }
}

WordPress Version: 3.7

/**
 * Load either the RSS2 comment feed or the RSS2 posts feed.
 *
 * @since 2.1.0
 *
 * @param bool $for_comments True for the comment feed, false for normal feed.
 */
function do_feed_rss2($for_comments)
{
    if ($for_comments) {
        load_template(ABSPATH . WPINC . '/feed-rss2-comments.php');
    } else {
        load_template(ABSPATH . WPINC . '/feed-rss2.php');
    }
}