WordPress.org

Make WordPress Core

Changeset 1402


Ignore:
Timestamp:
06/10/2004 09:17:41 AM (14 years ago)
Author:
saxmatt
Message:

Needs to be inside of conditional.

File:
1 edited

Legend:

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

    r1400 r1402  
    2020    global $withcomments, $single, $post, $wpdb, $id, $comment, $cookiehash;
    2121
    22     $req = get_settings('require_name_email');
    23     $comment_author = isset($_COOKIE['comment_author_'.$cookiehash]) ? trim($_COOKIE['comment_author_'.$cookiehash]) : '';
    24     $comment_author_email = isset($_COOKIE['comment_author_email_'.$cookiehash]) ? trim($_COOKIE['comment_author_email_'.$cookiehash]) : '';
    25     $comment_author_url = isset($_COOKIE['comment_author_url_'.$cookiehash]) ? trim($_COOKIE['comment_author_url_'.$cookiehash]) : '';
    26 
    27     $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' ORDER BY comment_date");
    28 
    29     if ( $single || $withcomments )
     22    if ( $single || $withcomments ) :
     23        $req = get_settings('require_name_email');
     24        $comment_author = isset($_COOKIE['comment_author_'.$cookiehash]) ? trim($_COOKIE['comment_author_'.$cookiehash]) : '';
     25        $comment_author_email = isset($_COOKIE['comment_author_email_'.$cookiehash]) ? trim($_COOKIE['comment_author_email_'.$cookiehash]) : '';
     26        $comment_author_url = isset($_COOKIE['comment_author_url_'.$cookiehash]) ? trim($_COOKIE['comment_author_url_'.$cookiehash]) : '';
     27        $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' ORDER BY comment_date");
    3028        include(ABSPATH . 'wp-comments.php');
     29    endif;
    3130}
    3231
Note: See TracChangeset for help on using the changeset viewer.