WordPress.org

Make WordPress Core

Changeset 11839


Ignore:
Timestamp:
08/18/2009 07:33:56 PM (12 years ago)
Author:
ryan
Message:

Don't show comments template if post is empty

File:
1 edited

Legend:

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

    r11838 r11839  
    814814    global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity, $overridden_cpage;
    815815
    816     if ( ! (is_single() || is_page() || $withcomments) )
     816    if ( !(is_single() || is_page() || $withcomments) || empty($post) )
    817817        return;
    818818
Note: See TracChangeset for help on using the changeset viewer.