Use prepare() in get_comments()

git-svn-id: https://develop.svn.wordpress.org/trunk@9601 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2008-11-10 22:16:50 +00:00
parent a26f21e992
commit eef5445e38
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ function get_comments( $args = '' ) {
}
if ( ! empty($post_id) )
$post_where = "comment_post_ID = $post_id AND";
$post_where = $wpdb->prepare( 'comment_post_ID = %d AND', $post_id );
else
$post_where = '';