Use prepare() in get_comments()

git-svn-id: http://svn.automattic.com/wordpress/trunk@9601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2008-11-10 22:16:50 +00:00
parent 10f9e61ae2
commit 8d544355df
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 = '';