WordPress.org

Make WordPress Core

Changeset 9601


Ignore:
Timestamp:
11/10/08 22:16:50 (7 years ago)
Author:
markjaquith
Message:

Use prepare() in get_comments()

File:
1 edited

Legend:

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

    r9596 r9601  
    228228 
    229229    if ( ! empty($post_id) ) 
    230         $post_where = "comment_post_ID = $post_id AND"; 
     230        $post_where = $wpdb->prepare( 'comment_post_ID = %d AND', $post_id ); 
    231231    else 
    232232        $post_where = ''; 
Note: See TracChangeset for help on using the changeset viewer.