Make WordPress Core

Changeset 12487


Ignore:
Timestamp:
12/22/2009 02:04:14 PM (15 years ago)
Author:
westi
Message:

Add is_comment_feed() to expose ->is_comment_feed. Fixes #10827 props scribu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r12409 r12487  
    296296
    297297    return $wp_query->is_feed;
     298}
     299
     300/**
     301 * Whether current page query is comment feed URL.
     302 *
     303 * @since 3.0.0
     304 * @uses $wp_query
     305 *
     306 * @return bool
     307 */
     308function is_comment_feed () {
     309    global $wp_query;
     310
     311    return $wp_query->is_comment_feed;
    298312}
    299313
Note: See TracChangeset for help on using the changeset viewer.