From 55318cc19a533922c152832618e438870f7e72fd Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Tue, 22 Dec 2009 14:04:14 +0000 Subject: [PATCH] Add is_comment_feed() to expose ->is_comment_feed. Fixes #10827 props scribu. git-svn-id: https://develop.svn.wordpress.org/trunk@12487 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wp-includes/query.php b/wp-includes/query.php index 88440cba9f..865c71c35d 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. *