Make WordPress Core

Changeset 1398 for trunk/wp-comments.php


Ignore:
Timestamp:
06/10/2004 07:42:48 AM (22 years ago)
Author:
saxmatt
Message:

Move comments include into function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments.php

    r1355 r1398  
    1818        $comment_author_url = (isset($_COOKIE['comment_author_url_'.$cookiehash])) ? trim($_COOKIE['comment_author_url_'.$cookiehash]) : '';
    1919
    20         $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$id' AND comment_approved = '1' ORDER BY comment_date");
     20        $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' ORDER BY comment_date");
    2121?>
    2222
     
    3333
    3434
    35 <?php if ($comments) { ?>
     35<?php if ($comments) { ;?>
     36
    3637<ol id="commentlist">
    3738<?php foreach ($comments as $comment) { ?>
Note: See TracChangeset for help on using the changeset viewer.