mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 01:00:04 +00:00
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:
@@ -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 = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user