WordPress.org

Make WordPress Core

Changeset 10274


Ignore:
Timestamp:
12/30/2008 08:10:15 PM (13 years ago)
Author:
ryan
Message:

Close comments for old posts, pages, and attachments, not just posts. Props mrmist. fixes #8740 for 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/comment.php

    r10150 r10274  
    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_singular() || !get_option('close_comments_for_old_posts') )
    15841584        return $posts;
    15851585
Note: See TracChangeset for help on using the changeset viewer.