diff --git a/wp-includes/query.php b/wp-includes/query.php index 88440cba9..865c71c35 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -297,6 +297,20 @@ function is_feed () { return $wp_query->is_feed; } +/** + * Whether current page query is comment feed URL. + * + * @since 3.0.0 + * @uses $wp_query + * + * @return bool + */ +function is_comment_feed () { + global $wp_query; + + return $wp_query->is_comment_feed; +} + /** * Whether current page query is the front of the site. *