Ticket #8740: comment.diff
File comment.diff, 457 bytes (added by , 15 years ago) |
---|
-
comment.php
1580 1580 * @return object 1581 1581 */ 1582 1582 function _close_comments_for_old_posts( $posts ) { 1583 if ( empty($posts) || ! is_single() || !get_option('close_comments_for_old_posts') )1583 if ( empty($posts) || !(is_single() || is_page()) || !get_option('close_comments_for_old_posts') ) 1584 1584 return $posts; 1585 1585 1586 1586 $days_old = (int) get_option('close_comments_days_old');