mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user