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
This commit is contained in:
Peter Westwood
2009-12-22 14:04:14 +00:00
parent 94a68dfd80
commit 55318cc19a

View File

@@ -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.
*