Make WordPress Core

Changeset 719 for trunk/wp-comments.php


Ignore:
Timestamp:
01/05/2004 03:06:21 AM (22 years ago)
Author:
alex_t_king
Message:

added single quotes around post id in query

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments.php

    r709 r719  
    1515        $comment_author_url = (isset($HTTP_COOKIE_VARS['comment_author_url_'.$cookiehash])) ? trim($HTTP_COOKIE_VARS['comment_author_url_'.$cookiehash]) : '';
    1616
    17         $comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date");
     17        $comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = '$id' AND comment_approved = '1' ORDER BY comment_date");
    1818?>
    1919
Note: See TracChangeset for help on using the changeset viewer.