Changeset 1398 for trunk/wp-comments.php
- Timestamp:
- 06/10/2004 07:42:48 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-comments.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments.php
r1355 r1398 18 18 $comment_author_url = (isset($_COOKIE['comment_author_url_'.$cookiehash])) ? trim($_COOKIE['comment_author_url_'.$cookiehash]) : ''; 19 19 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"); 21 21 ?> 22 22 … … 33 33 34 34 35 <?php if ($comments) { ?> 35 <?php if ($comments) { ;?> 36 36 37 <ol id="commentlist"> 37 38 <?php foreach ($comments as $comment) { ?>
Note: See TracChangeset
for help on using the changeset viewer.