Make WordPress Core

Changeset 9373


Ignore:
Timestamp:
10/28/2008 01:20:38 AM (16 years ago)
Author:
azaozz
Message:

Fix redirecting of old slugs when Close Old Comments is enabled, props DD32, fixes #7976

File:
1 edited

Legend:

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

    r9367 r9373  
    15381538 */
    15391539function _close_comments_for_old_posts( $posts ) {
    1540     if ( !is_single() || !get_option('close_comments_for_old_posts') )
     1540    if ( empty($posts) || !is_single() || !get_option('close_comments_for_old_posts') )
    15411541        return $posts;
    15421542
Note: See TracChangeset for help on using the changeset viewer.