diff options
Diffstat (limited to 'wp-admin/includes/comment.php')
| -rw-r--r-- | wp-admin/includes/comment.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-admin/includes/comment.php b/wp-admin/includes/comment.php index 0f2aa61..8a47fe6 100644 --- a/wp-admin/includes/comment.php +++ b/wp-admin/includes/comment.php @@ -3,8 +3,8 @@ function comment_exists($comment_author, $comment_date) { global $wpdb; - return $wpdb->get_var("SELECT comment_post_ID FROM $wpdb->comments - WHERE comment_author = '$comment_author' AND comment_date = '$comment_date'"); + return $wpdb->get_var( $wpdb->prepare("SELECT comment_post_ID FROM $wpdb->comments + WHERE comment_author = %s AND comment_date = %s", $comment_author, $comment_date) ); } function edit_comment() { |
