| 14 | * @param string $comment_author Author of the comment |
| 15 | * @param string $comment_date_gmt Date of the comment |
| 16 | * @return mixed Comment post ID on success. |
| 17 | */ |
| 18 | function comment_exists_gmt( $comment_author, $comment_date_gmt ) { |
| 19 | global $wpdb; |
| 20 | |
| 21 | return $wpdb->get_var( $wpdb->prepare( |
| 22 | "SELECT comment_post_ID FROM $wpdb->comments WHERE comment_author = %s AND comment_date_gmt = %s", |
| 23 | stripslashes( $comment_author ), |
| 24 | stripslashes( $comment_date_gmt ) |
| 25 | ) ); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Determine if a comment exists based on author and date. |
| 30 | * |