Ticket #8740: comment.diff

File comment.diff, 457 bytes (added by mrmist, 3 years ago)

Fix to close comments for Pages

  • comment.php

     
    15801580 * @return object 
    15811581 */ 
    15821582function _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') ) 
    15841584                return $posts; 
    15851585 
    15861586        $days_old = (int) get_option('close_comments_days_old');