WordPress.org

Make WordPress Core

Ticket #10827: query.php.diff

File query.php.diff, 509 bytes (added by scribu, 5 years ago)
  • wp-includes/query.php

     
    321321} 
    322322 
    323323/** 
     324 * Whether current page query is comment feed URL. 
     325 * 
     326 * @since 2.9.0 
     327 * @uses $wp_query 
     328 * 
     329 * @return bool 
     330 */ 
     331function is_comment_feed () { 
     332        global $wp_query; 
     333 
     334        return $wp_query->is_comment_feed; 
     335} 
     336 
     337/** 
    324338 * Whether current page query is the front of the site. 
    325339 * 
    326340 * @since 2.5.0